FurkanCinko's picture
Update Dockerfile
7e271bf verified
raw
history blame contribute delete
366 Bytes
# Use an official Python runtime as a base image
FROM python:3.9
# Set the working directory
WORKDIR /app
# Copy all files from your project to the container
COPY . /app
RUN chmod -R 777 /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that Flask runs on
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]