Elyon7 commited on
Commit
9f24f3f
·
verified ·
1 Parent(s): ef976e9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,11 +1,10 @@
1
- # 1. Base Image
2
  FROM python:3.10-slim
3
 
4
- # 2. Setup ambiente base
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  WORKDIR /App
7
 
8
- # 3. Installiamo Git e le librerie di sistema (questo si può fare nel build)
9
  RUN apt-get update && apt-get install -y \
10
  git \
11
  ffmpeg \
@@ -14,13 +13,12 @@ RUN apt-get update && apt-get install -y \
14
  libgl1 \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # 4. Configurazione Porta e Matplotlib
18
  EXPOSE 7860
19
  ENV MPLCONFIGDIR=/tmp/matplotlib
20
 
21
- # 5. IL TRUCCO: Tutto avviene qui, nel CMD (Shell Form)
22
- # Usiamo "sh -c" implicito per permettere l'uso della variabile $GITHUB_TOKEN
23
- # Nota: Sostituisci 'App/main.py' con il percorso vero del tuo file se diverso.
24
  CMD git clone https://$GITHUB_TOKEN@github.com/Elyon7/Cosmo-Edu_Lab.git . && \
25
  pip install --no-cache-dir -r requirements.txt && \
26
- python App/main.py
 
 
1
+
2
  FROM python:3.10-slim
3
 
4
+
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  WORKDIR /App
7
 
 
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  ffmpeg \
 
13
  libgl1 \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+
17
  EXPOSE 7860
18
  ENV MPLCONFIGDIR=/tmp/matplotlib
19
 
20
+
 
 
21
  CMD git clone https://$GITHUB_TOKEN@github.com/Elyon7/Cosmo-Edu_Lab.git . && \
22
  pip install --no-cache-dir -r requirements.txt && \
23
+ cd App && \
24
+ python main.py