CAR-PRICE-FLASK / Dockerfile
msn-enginenova21's picture
Update Dockerfile
3a32021
raw
history blame contribute delete
496 Bytes
# Use a Python 3.9 base image
FROM python:3.9
# Set the working directory inside the container
WORKDIR /code
# Copy the requirements file into the container
COPY requirements.txt /code/requirements.txt
# Install the required dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the entire application directory into the container
COPY . /code
# Expose port 7860
EXPOSE 7860
# Define the command to run your application (without Uvicorn)
CMD ["python", "app.py"]