2022-04-11 09:13:33 -05:00
|
|
|
FROM alpine:latest
|
2020-09-09 01:56:14 -05:00
|
|
|
|
2022-04-11 09:13:33 -05:00
|
|
|
WORKDIR /cloudreve
|
2023-02-08 08:06:14 -05:00
|
|
|
COPY cloudreve ./cloudreve
|
2022-12-15 09:23:34 -05:00
|
|
|
|
2023-02-08 02:42:05 -05:00
|
|
|
RUN apk update \
|
|
|
|
&& apk add --no-cache tzdata \
|
|
|
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
|
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
|
|
|
&& chmod +x ./cloudreve \
|
|
|
|
&& mkdir -p /data/aria2 \
|
|
|
|
&& chmod -R 766 /data/aria2
|
2020-09-09 01:56:14 -05:00
|
|
|
|
2022-04-11 09:13:33 -05:00
|
|
|
EXPOSE 5212
|
|
|
|
VOLUME ["/cloudreve/uploads", "/cloudreve/avatar", "/data"]
|
2020-09-09 01:56:14 -05:00
|
|
|
|
2022-07-12 06:20:14 -05:00
|
|
|
ENTRYPOINT ["./cloudreve"]
|