[2025-04-13] Docker setup
This commit is contained in:
parent
c05e550f74
commit
aa8c36d4b9
12
build/Dockerfile
Normal file
12
build/Dockerfile
Normal 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
11
docker-compose.yml
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user