From 2019cb08074ecb51f90b7a477543bf6fab2ab0ab Mon Sep 17 00:00:00 2001 From: Enrico Buratto <34307850+enricobu96@users.noreply.github.com> Date: Sun, 29 Mar 2026 12:03:28 +0200 Subject: [PATCH] feat: deploy stuff --- Dockerfile | 17 +++++++++++++++++ docker-compose.yml | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7b1d0e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.12-slim + +WORKDIR /app + +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 + +COPY requirements.txt ./requirements.txt +RUN pip install --no-cache-dir -r requirements.txt + +COPY app.py ./app.py +COPY compiler.py ./compiler.py +COPY static ./static + +EXPOSE 7860 + +CMD ["python", "app.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d65e8da --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +services: + swissknife: + build: . + container_name: swissknife + ports: + - "7860:7860" + restart: unless-stopped + networks: + - misc + +networks: + misc: + external: true