docker
This commit is contained in:
parent
0806235f2f
commit
9928e63a62
4 changed files with 19 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:
|
||||||
|
utils:
|
||||||
|
build:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ports:
|
||||||
|
- "8041:8000" # Will listen on port 65193, change that number to change the port
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./site:/site
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
requests
|
||||||
|
flask
|
||||||
|
waitress
|
BIN
site/__pycache__/app.cpython-313.pyc
Normal file
BIN
site/__pycache__/app.cpython-313.pyc
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue