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
Joerg Elfring 9e66475149 init
2017-12-09 16:46:17 +01:00

25 lines
604 B
Docker

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" ]