supercart-backend / Dockerfile
kritish205's picture
Upload 2 files
cbe6e1a verified
raw
history blame contribute delete
373 Bytes
# Use a modern Python version
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the correct port
EXPOSE 7860
# Command to run the application
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]