Spaces:
Runtime error
Runtime error
File size: 655 Bytes
10f74b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
FROM continuumio/miniconda3
WORKDIR /app
# Copy your files
COPY . .
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
make \
&& rm -rf /var/lib/apt/lists/*
# Method 1: Use conda run (RECOMMENDED)
RUN conda create --name RobustMMFMEnv python=3.11 -y && \
conda run -n RobustMMFMEnv pip install -r requirements.txt
# Or if you have multiple conda envs:
RUN conda create --name GradioEnv python=3.13 -y && \
conda run -n GradioEnv pip install gradio
# Expose port
EXPOSE 7860
# Run app using conda run
CMD ["conda", "run", "--no-capture-output", "-n", "GradioEnv", "python", "gradio/gradio_app.py"]
|