feat: docker

This commit is contained in:
Nyx 2025-04-06 06:23:40 -05:00
parent ec9d6bd28c
commit da978a9efb
3 changed files with 18 additions and 0 deletions

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM python:3-alpine
WORKDIR /site
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
CMD ["waitress-serve", "--port=8000", "app.app"]

9
compose.yml Normal file
View file

@ -0,0 +1,9 @@
services:
webdict:
build:
dockerfile: Dockerfile
ports:
- "8041:8000" # Will listen on port 65193, change that number to change the port
restart: unless-stopped
volumes:
- ./site:/site

2
requirements.txt Normal file
View file

@ -0,0 +1,2 @@
flask
waitress