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/tinywebdav/Dockerfile

26 lines
604 B
Text
Raw Normal View History

2017-12-09 16:46:17 +01:00
FROM alpine:latest
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
RUN apk add --update --no-cache \
lighttpd \
lighttpd-mod_webdav
COPY ./assets/lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY ./assets/entrypoint.sh /entrypoint.sh
## Fix permissions
RUN chmod 755 /entrypoint.sh
## Create a workdir for lighttpd
## And add a pipe, later used for logging
RUN mkdir /var/run/lighttpd \
&& mkfifo -m 600 /var/run/lighttpd/logpipe \
&& chown -R lighttpd:lighttpd /var/run/lighttpd
ENV TOKEN="s3cret"
EXPOSE 80
VOLUME /var/www/localhost/htdocs
ENTRYPOINT [ "/entrypoint.sh" ]