Add dockerfile.

This commit is contained in:
redxef 2022-11-23 02:38:10 +01:00
parent d629e8fb71
commit 25b5ff81fc
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

12
Dockerfile Normal file
View 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" ]