[2025-04-13] Docker setup

This commit is contained in:
Andrew Conlin 2025-04-13 17:51:23 +01:00
parent c05e550f74
commit aa8c36d4b9
7 changed files with 23 additions and 0 deletions

12
build/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3-slim
WORKDIR usr/src/app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 80
CMD ["gunicorn","--config", "gunicorn_config.py", "year-progress:app"]

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
services:
year-progress:
platform: "linux/arm64/v8"
image: year-progress:latest
container_name: year-progress
restart: unless-stopped
build:
context: build
dockerfile: Dockerfile
ports:
- "1111:80"