|
|
|
FROM ubuntu:latest |
|
|
|
|
|
RUN apt-get update \ |
|
&& apt-get upgrade -y \ |
|
&& apt-get install -y git curl wget tzdata \ |
|
&& apt-get install sudo -y \ |
|
&& sudo apt-get install aria2 -y |
|
|
|
|
|
ENV TZ=Asia/Shanghai |
|
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
|
|
|
|
|
WORKDIR /ghostfile |
|
|
|
|
|
COPY . . |
|
|
|
|
|
RUN wget https://github.com/alist-org/alist-proxy/releases/download/v0.0.6/alist-proxy_0.0.6_linux_amd64.tar.gz \ |
|
&& tar -zxvf alist-proxy_0.0.6_linux_amd64.tar.gz \ |
|
&& rm alist-proxy_0.0.6_linux_amd64.tar.gz \ |
|
&& wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 |
|
|
|
|
|
RUN chmod -R 777 /ghostfile |
|
|
|
|
|
RUN chmod +x alist-proxy |
|
RUN chmod +x cloudflared-linux-amd64 |
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh |
|
RUN chmod +x /entrypoint.sh |
|
|
|
|
|
EXPOSE 5243 |
|
EXPOSE 6800 |
|
EXPOSE 8080 |
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |