dockerfiles/webdav/Dockerfile

23 lines
643 B
Docker
Raw Permalink Normal View History

2021-09-11 12:31:55 +08:00
FROM alpine:3.8
2022-02-01 22:01:09 +08:00
LABEL maintainer="Stille <stille@ioiox.com>"
2021-09-11 12:31:55 +08:00
ENV VERSION 4.1.0
WORKDIR /
RUN set -xe && \
apk add tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata
RUN set -x && \
if [ "$(uname -m)" = "x86_64" ]; then export ARCH=amd64 ; else if [ "$(uname -m)" = "aarch64" ]; then export ARCH=arm64 ; fi fi && \
wget --no-check-certificate https://github.com/hacdias/webdav/releases/download/v${VERSION}/linux-${ARCH}-webdav.tar.gz && \
tar xvf linux-${ARCH}-webdav.tar.gz && \
rm -rf *.tar.gz
COPY config.yml /
CMD /webdav -c /config.yml