Spaces:
Sleeping
Sleeping
File size: 527 Bytes
7af929b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 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"] |