diff --git a/build/Dockerfile b/build/Dockerfile new file mode 100644 index 0000000..a515c2a --- /dev/null +++ b/build/Dockerfile @@ -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"] diff --git a/gunicorn_config.py b/build/gunicorn_config.py similarity index 100% rename from gunicorn_config.py rename to build/gunicorn_config.py diff --git a/requirements.txt b/build/requirements.txt similarity index 100% rename from requirements.txt rename to build/requirements.txt diff --git a/templates/index.html b/build/templates/index.html similarity index 100% rename from templates/index.html rename to build/templates/index.html diff --git a/templates/init.html b/build/templates/init.html similarity index 100% rename from templates/init.html rename to build/templates/init.html diff --git a/year-progress.py b/build/year-progress.py similarity index 100% rename from year-progress.py rename to build/year-progress.py diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7054e94 --- /dev/null +++ b/docker-compose.yml @@ -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"