Robust_MMFM / Dockerfile
KC123hello's picture
Upload Dockerfile
10f74b5 verified
raw
history blame contribute delete
655 Bytes
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"]