Spaces:
Running
on
T4
Running
on
T4
| # Base image with Conda | |
| FROM continuumio/miniconda3 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy environment.yaml for conda | |
| COPY environment.yaml /tmp/environment.yaml | |
| # Create the Conda environment | |
| RUN conda env create -f /tmp/environment.yaml | |
| # Set default shell to use conda env | |
| SHELL ["conda", "run", "--no-capture-output", "-n", "tirex", "/bin/bash", "-c"] | |
| # Copy all project files and folders | |
| COPY app.py /app/ | |
| COPY static /app/static | |
| COPY data /app/data | |
| COPY tirex /app/tirex | |
| # Expose the default port | |
| EXPOSE 7860 | |
| # Run your app | |
| CMD ["python", "app.py"] | |