USER admin
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -67,10 +67,10 @@ COPY --chown=admin . /srv
|
|
67 |
# CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 5 --max-tasks-per-child=1 --without-heartbeat
|
68 |
|
69 |
# Give read and write permissions to the admin user
|
70 |
-
|
71 |
RUN chown -R admin:admin /srv
|
72 |
RUN chmod 755 /srv
|
73 |
-
|
74 |
CMD python -m uvicorn App.app:app --workers 1 --host 0.0.0.0 --port 7860
|
75 |
|
76 |
# Expose port
|
|
|
67 |
# CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 5 --max-tasks-per-child=1 --without-heartbeat
|
68 |
|
69 |
# Give read and write permissions to the admin user
|
70 |
+
|
71 |
RUN chown -R admin:admin /srv
|
72 |
RUN chmod 755 /srv
|
73 |
+
USER admin
|
74 |
CMD python -m uvicorn App.app:app --workers 1 --host 0.0.0.0 --port 7860
|
75 |
|
76 |
# Expose port
|