yomna-ashraf's picture
Upload 3 files
2eb9274 verified
raw
history blame contribute delete
423 Bytes
# Use a base image with Python pre-installed
FROM python:3.8-slim
# Set the working directory
WORKDIR /app
# Copy the application code into the container
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that the app will run on
EXPOSE 8080
# Start the Flask app using gunicorn (production-ready)
CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app"]