From 48e3f5c0cb0e066d2cd3258dfab7dce26fe09945 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 9 Feb 2025 14:34:39 -0500 Subject: [PATCH] Update docker/lucky-ddg/Dockerfile --- docker/lucky-ddg/Dockerfile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docker/lucky-ddg/Dockerfile b/docker/lucky-ddg/Dockerfile index 784883f..35e5667 100644 --- a/docker/lucky-ddg/Dockerfile +++ b/docker/lucky-ddg/Dockerfile @@ -1,9 +1,27 @@ +# Use the official Python image from Docker Hub FROM python:3.9-slim + +# Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 + +# Set working directory WORKDIR /app + +# Install Git +RUN apt-get update && apt-get install -y git + +# Copy the requirements file into the container COPY requirements.txt . + +# Install dependencies RUN pip install --no-cache-dir -r requirements.txt + +# Copy the application code COPY . . + +# Expose the Flask port EXPOSE 5000 -CMD ["python", "app.py"] \ No newline at end of file + +# Run the application +CMD ["python", "app.py"]