pr-1 / Dockerfile
Bjo53's picture
Create Dockerfile
23d9e54 verified
raw
history blame contribute delete
339 Bytes
# Use Python
FROM python:3.9
# Set up the working directory
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the rest of the application code
COPY . .
# Run the application on port 7860
CMD ["python", "app.py"]