techprotrade commited on
Commit
6a70c75
·
verified ·
1 Parent(s): 0a2262e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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=/data/anythingllm
12
  ENV SERVER_PORT=3001
13
 
14
  EXPOSE 7860
15
 
16
- CMD bash -c 'nginx && (cd /app/collector && node index.js &) && cd /app/server && exec node index.js'
 
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'