my-policy-analyser / Dockerfile
policy123's picture
Update Dockerfile
c1d21d7 verified
raw
history blame contribute delete
638 Bytes
# --- Dockerfile ---
# **UPDATED:** The final command changes to run the Gradio app.
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /code
# Copy the requirements file into the container at /code
COPY ./requirements.txt /code/requirements.txt
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of the application's code into the container at /code
COPY ./app.py /code/app.py
# **UPDATED COMMAND:** Command to run the Gradio application.
CMD ["python", "app.py"]