Feiiisal's picture
Containerizing the app
e79ae12
raw
history blame contribute delete
431 Bytes
FROM python:3.10
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements.txt file into our working directory (/app) in the container
COPY requirements.txt .
# Install dependencies
RUN pip install --default-timeout=600 -r requirements.txt
# Copy the app.py file into our working directory (/app) in the container
COPY app.py .
# Command to run when the container starts
CMD ["python", "./app.py"]