forked from mar10/wsgidav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 918 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Dockerfile for https://github.com/mar10/wsgidav/
# Build:
# docker build --rm -f Dockerfile -t mar10/wsgidav .
# Run:
# docker run --rm -it -p <PORT>:8080 -v <ROOT_FOLDER>:/var/wsgidav-root mar10/wsgidav
# for example
# docker run --rm -it -p 8080:8080 -v c:/temp:/var/wsgidav-root mar10/wsgidav
# Then open (or enter this URL in Windows File Explorer or any other WebDAV client)
# http://localhost:8080/
# NOTE 2018-07-28: alpine does not compile lxml
# NOTE 2019-11-27: smallest image generated at the end
FROM python:3-alpine
#dependencies
RUN apk add --no-cache --virtual .build-deps gcc libxslt-dev musl-dev py3-lxml py3-pip \
&& pip3 install wsgidav cheroot lxml \
&& apk del .build-deps gcc musl-dev
RUN pip install --no-cache-dir wsgidav cheroot lxml
RUN mkdir -p /var/wsgidav-root
EXPOSE 8080
CMD wsgidav --host 0.0.0.0 --port 8080 --root /var/wsgidav-root --auth=anonymous --no-config