ExtraaLearn / Dockerfile
Pratik26Dec's picture
Update Dockerfile
7c54938 verified
raw
history blame contribute delete
320 Bytes
# Use Python 3.10 slim as base image
FROM python:3.10-slim
WORKDIR /app
# Copy your app code and requirements
COPY . /app
RUN pip install --upgrade pip setuptools wheel
RUN pip install --prefer-binary -r requirements.txt
# Expose port and run the app
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]