Initial commit
This commit is contained in:
36
Dockerfile
Normal file
36
Dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
ARG BUILD_DATE
|
||||
|
||||
LABEL \
|
||||
maintainer="Logan Marchione <logan@loganmarchione.com>" \
|
||||
org.opencontainers.image.authors="Logan Marchione <logan@loganmarchione.com>" \
|
||||
org.opencontainers.image.title="docker-webdav-nginx" \
|
||||
org.opencontainers.image.description="Runs a Nginx WebDav server in Docker" \
|
||||
org.opencontainers.image.created=$BUILD_DATE
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
apache2-utils \
|
||||
netcat \
|
||||
nginx-extras && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
mkdir -p "/var/www/webdav/restricted" && \
|
||||
mkdir -p "/var/www/webdav/public" && \
|
||||
chown -R www-data:www-data "/var/www" && \
|
||||
rm /etc/nginx/sites-enabled/default
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
VOLUME [ "/var/www/webdav" ]
|
||||
|
||||
COPY password.sh password.sh
|
||||
|
||||
COPY webdav.conf /etc/nginx/sites-enabled/webdav
|
||||
|
||||
ENTRYPOINT ["/password.sh"]
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
HEALTHCHECK CMD nc -z localhost 80 || exit 1
|
Reference in New Issue
Block a user