docker-webdav-nginx/Dockerfile
Steven Polley 33ccf93911
All checks were successful
continuous-integration/drone/push Build is passing
hostile takeover
2023-06-23 20:42:29 -06:00

34 lines
770 B
Docker

FROM debian:12-slim
# Originally
# LABEL maintainer="Logan Marchione <logan@loganmarchione.com>" \
LABEL maintainer="himself@stevenpolley.net"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install --no-install-recommends \
apache2-utils \
netcat-openbsd \
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 entrypoint.sh /
COPY VERSION /
COPY webdav.conf /etc/nginx/sites-enabled/webdav
ENTRYPOINT ["/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
HEALTHCHECK CMD nc -z localhost 80 || exit 1