llamahackx / Dockerfile
dljdd's picture
Update Dockerfile
8e187c7
raw
history blame
468 Bytes
# Use a base image with Python 3.9
FROM python:3.9
# Set the working directory in the container
WORKDIR /code
# Copy the requirements file to the container
COPY ./requirements.txt /code/requirements.txt
# Install the Python dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the entire content of the current directory into the container
COPY . .
# Specify the command to run when the container starts
CMD ["python", "app.py"]