1
0

Initial commit

This commit is contained in:
2023-06-13 16:06:32 -05:00
commit 0416a77901
5 changed files with 422 additions and 0 deletions

25
Containerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM docker.io/library/python:3.11 AS build
RUN python3 -m pip install -U pip setuptools wheel
COPY . /tmp/build
RUN cd /tmp/build && python3 -m pip wheel -w dist .
FROM docker.io/library/python:3.11-slim
RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && \
apt-get install -y \
tini \
&& :
RUN --mount=from=build,source=/tmp/build/dist,target=/tmp/wheels \
python3 -m pip install -f /tmp/wheels \
dch_webhooks \
uvicorn \
&& :
USER 1000:1000
CMD ["tini", "/usr/local/bin/uvicorn", "dch_webhooks:app"]