shiyemin2 commited on
Commit
4ec3f0c
1 Parent(s): b328795

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -1,7 +1,11 @@
1
  FROM tiangolo/uwsgi-nginx:python3.10
2
 
3
- RUN chown -R 1000 /app /etc/nginx /usr/local/lib/python3.10/site-packages /usr/local/bin /var/log /var/run /etc/supervisor/conf.d /run /tmp /etc/uwsgi /var/cache && \
4
- rm /etc/nginx/conf.d/nginx.conf
 
 
 
 
5
 
6
  # Set up a new user named "user" with user ID 1000
7
  RUN useradd -m -u 1000 user
@@ -20,9 +24,8 @@ RUN git clone https://github.com/LinkSoul-AI/AutoAgents autoagents && \
20
  python setup.py install && \
21
  pip cache purge && \
22
  cp docker/prestart.sh /app/prestart.sh && \
23
- cp docker/autoagents.conf /etc/nginx/conf.d/autoagents.conf && \
 
24
  sed -i 's/nodaemon=true/nodaemon=true\nuser=user/g' /etc/supervisor/conf.d/supervisord.conf && \
25
  sed -i 's/nginx/user/g' /etc/uwsgi/uwsgi.ini && \
26
- sed -i 's/nginx;/user;/g' /etc/nginx/nginx.conf
27
-
28
- EXPOSE 7860
 
1
  FROM tiangolo/uwsgi-nginx:python3.10
2
 
3
+ ENV LISTEN_PORT 7860
4
+ ENV USE_HTML_ROOT /app/autoagents/frontend/app
5
+
6
+ EXPOSE 7860
7
+
8
+ RUN chown -R 1000 /app /etc/nginx /usr/local/lib/python3.10/site-packages /usr/local/bin /var/log /var/run /etc/supervisor/conf.d /run /tmp /etc/uwsgi /var/cache /entrypoint.sh
9
 
10
  # Set up a new user named "user" with user ID 1000
11
  RUN useradd -m -u 1000 user
 
24
  python setup.py install && \
25
  pip cache purge && \
26
  cp docker/prestart.sh /app/prestart.sh && \
27
+ cp docker/entrypoint.sh /entrypoint.sh && \
28
+ chmod +x /entrypoint.sh && \
29
  sed -i 's/nodaemon=true/nodaemon=true\nuser=user/g' /etc/supervisor/conf.d/supervisord.conf && \
30
  sed -i 's/nginx/user/g' /etc/uwsgi/uwsgi.ini && \
31
+ sed -i 's/nginx;/user;/g' /etc/nginx/nginx.conf