Amal Nimmy Lal commited on
Commit
44dcb00
·
1 Parent(s): d3acb8a

fix : deployable files

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. nginx.conf +1 -1
  3. supervisord.conf +1 -1
Dockerfile CHANGED
@@ -37,6 +37,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
37
  RUN chmod +x /home/user/app/entrypoint.sh || true
38
  RUN mkdir -p /data && chmod 700 /data
39
  USER user
40
- EXPOSE 8000 80
41
  ENTRYPOINT ["/home/user/app/entrypoint.sh"]
42
  CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
 
37
  RUN chmod +x /home/user/app/entrypoint.sh || true
38
  RUN mkdir -p /data && chmod 700 /data
39
  USER user
40
+ EXPOSE 7860
41
  ENTRYPOINT ["/home/user/app/entrypoint.sh"]
42
  CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
nginx.conf CHANGED
@@ -26,7 +26,7 @@ http {
26
 
27
  # Proxy API requests to backend
28
  location /api/ {
29
- proxy_pass http://127.0.0.1:8000/api/;
30
  proxy_set_header Host $host;
31
  proxy_set_header X-Real-IP $remote_addr;
32
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
26
 
27
  # Proxy API requests to backend
28
  location /api/ {
29
+ proxy_pass http://127.0.0.1:7860/api/;
30
  proxy_set_header Host $host;
31
  proxy_set_header X-Real-IP $remote_addr;
32
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
supervisord.conf CHANGED
@@ -7,7 +7,7 @@ autostart=true
7
  autorestart=true
8
 
9
  [program:uvicorn]
10
- command=uvicorn app.main:app --host 0.0.0.0 --port 8000
11
  directory=/home/user/app
12
  autostart=true
13
  autorestart=true
 
7
  autorestart=true
8
 
9
  [program:uvicorn]
10
+ command=uvicorn app.main:app --host 0.0.0.0 --port 7860
11
  directory=/home/user/app
12
  autostart=true
13
  autorestart=true