webscraping / Dockerfile
nielitropar's picture
Update Dockerfile
654ff21 verified
raw
history blame contribute delete
391 Bytes
# Using Python 3.9 base image
FROM python:3.9
# Set the working directory to /code
WORKDIR /code
# Copy requirements.txt to /code
COPY ./requirements.txt /code/requirements.txt
# Install dependencies from requirements.txt
RUN pip install -r requirements.txt
# Copy the entire project content to /code
COPY . /code
# CMD to run Gunicorn
CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"]