From 03a97976d080fe84b73ee76dd0e055c4bee8524e Mon Sep 17 00:00:00 2001 From: Hafzal Ahamed Hasan Mohamed Date: Wed, 19 Mar 2025 10:58:44 +0000 Subject: [PATCH] Update dockerfile --- dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dockerfile b/dockerfile index e69de29..ad9b689 100644 --- a/dockerfile +++ b/dockerfile @@ -0,0 +1,21 @@ +# Use an official Python runtime as a parent image +FROM python:3.8-slim + +# Set the working directory inside the container +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY . /app + +# Install Flask +RUN pip install --no-cache-dir flask + +# Set the environment variable for Flask +ENV FLASK_APP=app.py +ENV FLASK_RUN_HOST=0.0.0.0 + +# Expose port 5000 for the Flask app +EXPOSE 5000 + +# Run the Flask application +CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]