From 25b5ff81fca9f1dcefa212ea9d04683327cce691 Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 23 Nov 2022 02:38:10 +0100 Subject: [PATCH] Add dockerfile. --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..57d865c --- /dev/null +++ b/Dockerfile @@ -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" ]