crop_market_analysis / Dockerfile
sikeaditya's picture
Update Dockerfile
a635f47 verified
raw
history blame contribute delete
441 Bytes
# Use the official Python 3.9 image
FROM python:3.9
# Set the working directory to /app
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt /app/requirements.txt
# Install the dependencies
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
# Copy the rest of the application code into the container
COPY . /app
# Expose port 7860
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]