feat: docker
This commit is contained in:
parent
ec9d6bd28c
commit
da978a9efb
3 changed files with 18 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
9
compose.yml
Normal 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
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
flask
|
||||
waitress
|
Loading…
Add table
Reference in a new issue