Add docker-compose file for python:3-alpine auto-building (#126)
This commit is contained in:
parent
cc00400fca
commit
1096db0abf
2 changed files with 27 additions and 5 deletions
14
Dockerfile
14
Dockerfile
|
@ -8,12 +8,16 @@
|
|||
# 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 copmpile lxml
|
||||
FROM python:3
|
||||
# NOTE 2018-07-28: alpine does not compile lxml
|
||||
# NOTE 2018-08-28: latest python:3-alpine docker build now compiles lxml successfully
|
||||
FROM python:3-alpine
|
||||
|
||||
# Compile dependencies to pip install lxml (including alpine musl libc)
|
||||
RUN apk --no-cache add gcc libxslt-dev musl-dev
|
||||
|
||||
RUN pip install --no-cache-dir wsgidav cheroot lxml
|
||||
RUN mkdir -p /var/wsgidav-root
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
RUN pip install wsgidav cheroot lxml
|
||||
RUN mkdir -p /var/wsgidav-root
|
||||
|
||||
CMD wsgidav --host 0.0.0.0 --port 8080 --root /var/wsgidav-root --no-config
|
||||
|
|
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
wsgidav:
|
||||
build: .
|
||||
image: mar10/wsgidav
|
||||
container_name: "wsgidav"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
networks:
|
||||
- local
|
||||
volumes:
|
||||
- ./wsgidav_data:/var/wsgidav-root
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
local:
|
||||
driver: bridge
|
Loading…
Add table
Add a link
Reference in a new issue