This commit is contained in:
2025-04-25 10:22:18 +01:00
parent 630410797b
commit 16a2d8a53d
2 changed files with 14 additions and 3 deletions

View File

@@ -8,12 +8,16 @@ COPY requirements.txt .
# Install the required packages
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install gunicorn
# Copy the rest of the application code into the container
COPY src src
COPY src .
# Expose the port the app runs on
EXPOSE 5000
# Set environment variables
ENV FLASK_APP=main.py
# run the application
CMD ["python", "src/main.py"]
ENTRYPOINT [ "gunicorn", "-b", ":5000", "--access-logfile", "-", "--error-logfile", "-", "main:app" ]