Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +10 -3
Dockerfile
CHANGED
@@ -14,10 +14,17 @@ WORKDIR /app
|
|
14 |
COPY . /app
|
15 |
COPY app.py /app
|
16 |
COPY index.html /app/templates/index.html
|
|
|
17 |
RUN wget https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_linux_x86_64.tar.gz
|
18 |
-
|
19 |
-
|
20 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
# Expone el puerto en el que Flask se ejecutará dentro del contenedor
|
22 |
EXPOSE 7860
|
23 |
|
|
|
14 |
COPY . /app
|
15 |
COPY app.py /app
|
16 |
COPY index.html /app/templates/index.html
|
17 |
+
# Descarga el archivo tar.gz
|
18 |
RUN wget https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_linux_x86_64.tar.gz
|
19 |
+
|
20 |
+
# Extrae el contenido del archivo tar.gz y renombra el binario si es necesario
|
21 |
+
RUN tar xvf piper_linux_x86_64.tar.gz && \
|
22 |
+
mv piper piper_temp && \
|
23 |
+
mv piper_temp/piper .
|
24 |
+
|
25 |
+
# Limpia los archivos temporales
|
26 |
+
RUN rm -rf piper_temp piper_linux_x86_64.tar.gz
|
27 |
+
|
28 |
# Expone el puerto en el que Flask se ejecutará dentro del contenedor
|
29 |
EXPOSE 7860
|
30 |
|