18 lines
419 B
Docker
18 lines
419 B
Docker
FROM alpine:latest
|
|
|
|
WORKDIR /cloudreve
|
|
COPY cloudreve ./cloudreve
|
|
|
|
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
|
|
|
|
EXPOSE 5212
|
|
VOLUME ["/cloudreve/uploads", "/cloudreve/avatar", "/data"]
|
|
|
|
ENTRYPOINT ["./cloudreve"]
|