Docker buid issue

This commit is contained in:
2025-10-17 10:54:34 +05:30
parent 1452aafb42
commit b0ffbe1d46
4 changed files with 31 additions and 4 deletions

View File

@ -7,6 +7,11 @@ WORKDIR /app
# Prevent Python from buffering stdout/stderr
ENV PYTHONUNBUFFERED=1
# Install mysql-client for database connectivity checks
RUN apt-get update && \
apt-get install -y default-mysql-client curl && \
rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
@ -28,4 +33,4 @@ ENV FLASK_RUN_PORT=5000
EXPOSE 5000
# Use Gunicorn for production
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "run:app"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "run:app"]