bookreccom / Dockerfile
NEEHARA's picture
Update Dockerfile
79745fd verified
raw
history blame contribute delete
426 Bytes
# Use an official Python base image
FROM python:3.10
# Set the working directory inside the container
WORKDIR /app
# Copy the dependencies file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app code into the container
COPY . .
# Expose the port your Flask app runs on
EXPOSE 7860
# Define the default command to run your app
CMD ["python", "app.py"]