Spaces:
Sleeping
Sleeping
# Use the official Python image from the Docker Hub | |
FROM python:3.10-slim | |
# Set the working directory in the container | |
WORKDIR /app | |
# Install Poetry | |
RUN pip install poetry | |
# Copy only the pyproject.toml and poetry.lock files to install dependencies first | |
COPY pyproject.toml poetry.lock ./ | |
# Install dependencies using Poetry | |
RUN poetry config virtualenvs.create false && poetry install --only=main | |
# Copy the rest of the application code to the working directory | |
COPY . . | |
EXPOSE 8501 | |
CMD ["streamlit", "run", "run.py"] |