feat: deploy stuff

This commit is contained in:
Enrico Buratto
2026-03-29 12:03:28 +02:00
parent 07c3a6c56a
commit 2019cb0807
2 changed files with 30 additions and 0 deletions

17
Dockerfile Normal file
View File

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

13
docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
services:
swissknife:
build: .
container_name: swissknife
ports:
- "7860:7860"
restart: unless-stopped
networks:
- misc
networks:
misc:
external: true