Spaces:
Running
Running
| # Use the official Python image from the Docker Hub as the base image | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container at /app | |
| COPY requirements.txt /app/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . /app | |
| # Expose the port the app runs on | |
| EXPOSE 8501 | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| # Run the application | |
| CMD ["streamlit", "run", "phenogenius_app.py"] | |