golemet commited on
Commit
d5a643a
·
verified ·
1 Parent(s): b0dcc25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -5
Dockerfile CHANGED
@@ -25,13 +25,22 @@ RUN pip install --upgrade pip
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
  # Copiar el código fuente
28
- COPY app.py /app/
29
 
30
  # Copiar el código
31
- #COPY . .
32
-
33
- # Copiar efemérides
34
- COPY ephemeris /app/ephemeris
 
 
 
 
 
 
 
 
 
35
 
36
  # Exponer el puerto (FastAPI por HuggingFace normalmente usa 7860)
37
  EXPOSE 7860
 
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
  # Copiar el código fuente
28
+ #COPY app.py /app/
29
 
30
  # Copiar el código
31
+ COPY . .
32
+
33
+ # Crear carpeta de efemérides
34
+ RUN mkdir -p /app/ephemeris
35
+
36
+ # Descargar efemérides desde GitHub
37
+ RUN apt-get update && apt-get install -y curl unzip \
38
+ && curl -L https://github.com/aloistr/swisseph/archive/refs/heads/master.zip -o swisseph.zip \
39
+ && unzip swisseph.zip "swisseph-master/ephe/*" -d /app/ephemeris \
40
+ && rm swisseph.zip \
41
+ && apt-get remove -y curl unzip \
42
+ && apt-get autoremove -y \
43
+ && apt-get clean
44
 
45
  # Exponer el puerto (FastAPI por HuggingFace normalmente usa 7860)
46
  EXPOSE 7860