Spaces:
Sleeping
Sleeping
change user permissions
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -16,12 +16,14 @@ ENV LANGUAGE en_US.UTF-8
|
|
16 |
COPY requirements.txt .
|
17 |
RUN pip install -r requirements.txt
|
18 |
|
19 |
-
RUN
|
20 |
-
USER
|
21 |
|
22 |
-
COPY . /finance-rag-chatbot-group39
|
23 |
WORKDIR /finance-rag-chatbot-group39
|
24 |
|
|
|
|
|
25 |
# Final command: run the mesop script
|
26 |
# CMD ["mesop", "main.py", "--port", "8080"]
|
27 |
#CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:me"]
|
|
|
16 |
COPY requirements.txt .
|
17 |
RUN pip install -r requirements.txt
|
18 |
|
19 |
+
RUN useradd -m -u 1000 user
|
20 |
+
USER user
|
21 |
|
22 |
+
COPY --chown=user:user . /finance-rag-chatbot-group39
|
23 |
WORKDIR /finance-rag-chatbot-group39
|
24 |
|
25 |
+
RUN chown -R user:user /finance-rag-chatbot-group39
|
26 |
+
|
27 |
# Final command: run the mesop script
|
28 |
# CMD ["mesop", "main.py", "--port", "8080"]
|
29 |
#CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:me"]
|