1
0
Files
dch-webhooks/Containerfile
Dustin C. Hatch 55df6f61a7 Revert "sign_ssh_keys: Add hook to sign SSH host cert"
No longer using Step CA for SSH host certificates.  Switched to sshca.

This reverts commit e5eff964a1.
2024-01-15 13:49:51 -06:00

26 lines
535 B
Docker

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"]