shiyemin2 commited on
Commit
b328795
1 Parent(s): 93202bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,6 +1,7 @@
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
 
5
  # Set up a new user named "user" with user ID 1000
6
  RUN useradd -m -u 1000 user
@@ -22,7 +23,6 @@ RUN git clone https://github.com/LinkSoul-AI/AutoAgents autoagents && \
22
  cp docker/autoagents.conf /etc/nginx/conf.d/autoagents.conf && \
23
  sed -i 's/nodaemon=true/nodaemon=true\nuser=user/g' /etc/supervisor/conf.d/supervisord.conf && \
24
  sed -i 's/nginx/user/g' /etc/uwsgi/uwsgi.ini && \
25
- sed -i 's/nginx;/user;/g' /etc/nginx/nginx.conf && \
26
- rm /etc/nginx/conf.d/nginx.conf
27
 
28
  EXPOSE 7860
 
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
 
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