Add Dockerfile

This commit is contained in:
Christoph Stahl 2024-10-06 14:51:23 +02:00
parent a60cc1922d
commit 18322412c2

View file

@ -0,0 +1,9 @@
FROM python:3.12-bullseye
RUN useradd -m -d /app syng
USER syng
ENV PATH="/app/.local/bin:${PATH}"
WORKDIR /app/
RUN pip install --user "syng[server]@git+https://github.com/christofsteel/syng.git"
RUN touch /app/keys.txt
EXPOSE 8080
ENTRYPOINT ["syng", "server", "-k", "/app/keys.txt"]