KC123hello commited on
Commit
10f74b5
·
verified ·
1 Parent(s): 7d5e512

Upload Dockerfile

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