Add dockerfile.
This commit is contained in:
parent
d629e8fb71
commit
25b5ff81fc
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM alpine
|
||||
|
||||
RUN mkdir -p /opt/wp-cal-integration \
|
||||
&& apk --no-cache add python3 py3-pip
|
||||
COPY main.py /opt/wp-cal-integration/
|
||||
COPY adapters /opt/wp-cal-integration/adapters
|
||||
COPY requirements.txt /opt/wp-cal-integration/
|
||||
RUN python3 -m pip install -r /opt/wp-cal-integration/requirements.txt
|
||||
VOLUME /etc/wp-cal-integration/
|
||||
|
||||
ENTRYPOINT [ "/opt/wp-cal-integration/main.py" ]
|
||||
CMD [ "-c", "/etc/wp-cal-integration/config.yaml" ]
|
Loading…
Reference in a new issue