add: base

This commit is contained in:
2026-02-19 14:15:26 +00:00
parent 605348edd3
commit 9016e40c75
6 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
services:
bg-shutdown:
container_name: bg-shutdown
build: ./src
volumes:
- "./src/data:/data"

10
server/src/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:3.11-slim
COPY . .
WORKDIR /data
RUN pip install --no-cache-dir -r /data/requirements.txt
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]

View File

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

View File

@@ -1,4 +1,6 @@
from Flask import Flask, render_template
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def mainpage():