Spaces:
Sleeping
Sleeping
| FROM mambaorg/micromamba:1.5.5 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy environment file and app files into container | |
| COPY environment.yml /app/environment.yml | |
| COPY . /app | |
| # Create the environment named "herbie" and clean up | |
| RUN micromamba env create -f /app/environment.yml -n herbie && \ | |
| micromamba clean --all --yes | |
| # Set shell so all RUN/CMD use the herbie environment | |
| SHELL ["micromamba", "run", "-n", "herbie", "--"] | |
| # Expose the port Dash uses | |
| EXPOSE 7860 | |
| # Start the Dash app | |
| CMD ["micromamba", "run", "-n", "herbie", "python", "app.py"] | |