This commit is contained in:
2026-02-09 20:44:14 +00:00
parent 771bf369ea
commit d2f25d15ed
5 changed files with 36 additions and 2 deletions

11
backend/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 5000
CMD ["python", "app.py"]

14
backend/app.py Normal file
View File

@@ -0,0 +1,14 @@
from flask import Flask
app = Flask(__name__)
@app.get("/health")
def health():
return {"status": "ok"}
@app.get("/")
def index():
return "Wedding backend is running."
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)

1
backend/requirements.txt Normal file
View File

@@ -0,0 +1 @@
flask