ExtraaLearn / Dockerfile
rahularorarahul's picture
Create Dockerfile
b3e228c verified
Raw
History Blame Contribute Delete
410 Bytes
# Use a lightweight Python base image
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the port that Flask runs on
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]