mirror of https://github.com/cloudreve/Cloudreve
chore(dockerfile): improve layer cache hit rate
parent
1fa70dc699
commit
e0b193427c
11
Dockerfile
11
Dockerfile
|
@ -2,15 +2,10 @@ FROM alpine:latest
|
||||||
|
|
||||||
WORKDIR /cloudreve
|
WORKDIR /cloudreve
|
||||||
|
|
||||||
COPY .build/aria2.supervisor.conf .build/entrypoint.sh ./
|
|
||||||
COPY cloudreve ./cloudreve
|
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk add --no-cache tzdata vips-tools ffmpeg libreoffice aria2 supervisor font-noto font-noto-cjk \
|
&& apk add --no-cache tzdata vips-tools ffmpeg libreoffice aria2 supervisor font-noto font-noto-cjk \
|
||||||
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||||
&& echo "Asia/Shanghai" > /etc/timezone \
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
||||||
&& chmod +x ./cloudreve \
|
|
||||||
&& chmod +x ./entrypoint.sh \
|
|
||||||
&& mkdir -p ./data/temp/aria2 \
|
&& mkdir -p ./data/temp/aria2 \
|
||||||
&& chmod -R 766 ./data/temp/aria2
|
&& chmod -R 766 ./data/temp/aria2
|
||||||
|
|
||||||
|
@ -20,6 +15,12 @@ ENV CR_ENABLE_ARIA2=1 \
|
||||||
CR_SETTING_DEFAULT_thumb_libreoffice_enabled=1 \
|
CR_SETTING_DEFAULT_thumb_libreoffice_enabled=1 \
|
||||||
CR_SETTING_DEFAULT_media_meta_ffprobe=1
|
CR_SETTING_DEFAULT_media_meta_ffprobe=1
|
||||||
|
|
||||||
|
COPY .build/aria2.supervisor.conf .build/entrypoint.sh ./
|
||||||
|
COPY cloudreve ./cloudreve
|
||||||
|
|
||||||
|
RUN chmod +x ./cloudreve \
|
||||||
|
&& chmod +x ./entrypoint.sh \
|
||||||
|
|
||||||
EXPOSE 5212 443
|
EXPOSE 5212 443
|
||||||
|
|
||||||
VOLUME ["/cloudreve/data"]
|
VOLUME ["/cloudreve/data"]
|
||||||
|
|
Loading…
Reference in New Issue