Spaces:
Runtime error
Runtime error
Sébastien De Greef
commited on
Commit
·
97992cb
1
Parent(s):
cf2912d
chore: Update Dockerfile to install requirements and run startup script
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -37,11 +37,13 @@ RUN echo "chatbot ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-chatbot
|
|
37 |
|
38 |
USER chatbot
|
39 |
|
40 |
-
RUN --mount=target=requirements.txt,source=requirements.txt
|
41 |
|
42 |
WORKDIR $HOME/app
|
43 |
|
|
|
44 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite bash /root/on_startup.sh
|
|
|
45 |
|
46 |
COPY --chown=chatbot . $HOME/app
|
47 |
|
|
|
37 |
|
38 |
USER chatbot
|
39 |
|
40 |
+
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir --upgrade -r requirements.txt
|
41 |
|
42 |
WORKDIR $HOME/app
|
43 |
|
44 |
+
USER root
|
45 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite bash /root/on_startup.sh
|
46 |
+
USER chatbot
|
47 |
|
48 |
COPY --chown=chatbot . $HOME/app
|
49 |
|