From 973d24ddd24ccfd547cde4eda6ab1e00b7f8a560 Mon Sep 17 00:00:00 2001 From: hzhang Date: Tue, 3 Dec 2024 13:13:07 +0000 Subject: [PATCH] Dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Dockerfile b/Dockerfile index e69de29..d58a36f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.12-slim + +ENV PYTHONDONTWRITEBYTECODE 1 +ENV PYTHONUNBUFFERED 1 + +WORKDIR /app + +COPY requirements.txt /app/ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . /app/ + +EXPOSE 5000 + +CMD ["python", "app.py"] \ No newline at end of file