Docker buid issue
This commit is contained in:
@ -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"]
|
||||
Reference in New Issue
Block a user