From 0bfc2fd9c5d18b9e8f9bbd8fd8c090a572b872ca Mon Sep 17 00:00:00 2001 From: michael1986 Date: Mon, 1 Dec 2025 13:18:53 +0100 Subject: [PATCH] Dockerify --- Dockerfile | 23 +++++++++++++++++++++++ app.py | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e69de29..3207ac1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Dockerfile +FROM python:3.11-slim + +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 + +WORKDIR /app + +# (optioneel: system deps toevoegen als later nodig voor DB/libs) +RUN apt-get update && apt-get install -y --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +# Python deps +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# App code +COPY . . + +EXPOSE 5000 + +# Simpel: zelfde als startup.bat, maar dan Linux +CMD ["python", "app.py"] diff --git a/app.py b/app.py index 15b2885..c3b81ec 100644 --- a/app.py +++ b/app.py @@ -49,6 +49,7 @@ def refreshAllAuctions(countrycode): if __name__ == "__main__": - app.run() # run our Flask app + app.run(host="0.0.0.0", port=5000) # ipv alleen app.run() +