diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..59dafdb --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..0c4b908 --- /dev/null +++ b/compose.yml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ebf25c5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +requests +flask +waitress diff --git a/site/__pycache__/app.cpython-313.pyc b/site/__pycache__/app.cpython-313.pyc new file mode 100644 index 0000000..326efbc Binary files /dev/null and b/site/__pycache__/app.cpython-313.pyc differ