Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -8,9 +8,9 @@ RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
|
|
| 8 |
# Configure nginx reverse proxy on port 7860
|
| 9 |
RUN echo 'server { listen 7860; location / { proxy_pass http://127.0.0.1:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Host $host; proxy_read_timeout 86400; } }' > /etc/nginx/sites-available/default
|
| 10 |
|
| 11 |
-
ENV STORAGE_DIR=/
|
| 12 |
ENV SERVER_PORT=3001
|
| 13 |
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
-
CMD bash -c 'nginx &&
|
|
|
|
| 8 |
# Configure nginx reverse proxy on port 7860
|
| 9 |
RUN echo 'server { listen 7860; location / { proxy_pass http://127.0.0.1:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Host $host; proxy_read_timeout 86400; } }' > /etc/nginx/sites-available/default
|
| 10 |
|
| 11 |
+
ENV STORAGE_DIR=/app/server/storage
|
| 12 |
ENV SERVER_PORT=3001
|
| 13 |
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
+
CMD bash -c 'nginx && exec /usr/local/bin/docker-entrypoint.sh'
|