JPSolutions commited on
Commit
bb32a61
·
verified ·
1 Parent(s): 1820a3a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -9
Dockerfile CHANGED
@@ -64,15 +64,8 @@ COPY --from=frontend-builder /build/dist_output /var/www/html/
64
  # Pre-instalar gemas de Ruby en todas las carpetas con Gemfile
65
  RUN find /app -name "Gemfile" -not -path "*/vendor/*" -execdir bundle install \;
66
 
67
- # Configurar Nginx para el puerto 7860 de Hugging Face
68
- RUN echo 'server { \
69
- listen 7860; \
70
- server_name _; \
71
- root /var/www/html; \
72
- index index.html; \
73
- location / { \
74
- try_files $uri $uri/ /index.html; \
75
- } \}' > /etc/nginx/sites-available/default
76
 
77
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
78
 
 
64
  # Pre-instalar gemas de Ruby en todas las carpetas con Gemfile
65
  RUN find /app -name "Gemfile" -not -path "*/vendor/*" -execdir bundle install \;
66
 
67
+ # Configurar Nginx para el puerto 7860 de Hugging Face en una sola línea para evitar errores de sintaxis
68
+ RUN echo 'server { listen 7860; server_name _; root /var/www/html; index index.html; location / { try_files $uri $uri/ /index.html; } }' > /etc/nginx/sites-available/default
 
 
 
 
 
 
 
69
 
70
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
71