Add a Dockerfile for building the current code as a Dockerfile
This commit is contained in:
committed by
Julien Sanchez
parent
d7ce2f0b98
commit
1c82eb5e05
19
Dockerfile.dev
Normal file
19
Dockerfile.dev
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM python:3-alpine
|
||||
|
||||
# Version of Radicale (e.g. v3)
|
||||
ARG VERSION=master
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
# TCP port of Radicale
|
||||
EXPOSE 5232
|
||||
# Run Radicale
|
||||
CMD ["radicale", "--hosts", "0.0.0.0:5232"]
|
||||
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache ca-certificates openssl \
|
||||
&& apk add --no-cache --virtual .build-deps gcc libffi-dev musl-dev \
|
||||
&& pip install --no-cache-dir -e . \
|
||||
&& apk del .build-deps
|
||||
Reference in New Issue
Block a user