Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/webdav/Dockerfile
2020-07-23 16:33:44 +02:00

35 lines
789 B
Docker

FROM alpine:latest
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
## Install prereqs
RUN apk add --update --no-cache \
curl \
git \
mc \
apache2 \
apr-util-dbm_db \
apache2-webdav \
## We don't need the default webdav config
&& rm -f /etc/apache2/conf.d/dav.conf \
## We will not be root, so we need to be able to access our pid file
&& chown apache:apache /run/apache2 \
## Apache should have full-access to it's docroot
&& chown -R apache:apache /var/www/localhost \
## Prepare lock-db
&& touch /var/www/dav.lockdb \
&& chown -R apache:apache /var/www/dav.lockdb
## Configure apache
COPY assets/httpd.conf /etc/apache2/httpd.conf
USER apache
VOLUME /var/www
WORKDIR /var/www
EXPOSE 8080
CMD httpd -D FOREGROUND