Spaces:
Runtime error
Runtime error
Sébastien De Greef
commited on
Commit
·
68a97d2
1
Parent(s):
8bb21dd
chore: Update Dockerfile to set HOME env variable and create .cache and .config directories
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -47,6 +47,11 @@ RUN echo "chatbot ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-chatbot
|
|
47 |
|
48 |
USER chatbot
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir --upgrade -r requirements.txt
|
51 |
|
52 |
WORKDIR $HOME/app
|
|
|
47 |
|
48 |
USER chatbot
|
49 |
|
50 |
+
# Set HOME env variable
|
51 |
+
ENV HOME=/home/chatbot
|
52 |
+
# Create the .cache and .config directories and set permissions
|
53 |
+
RUN mkdir $HOME/.cache $HOME/.config && chmod -R 777 $HOME
|
54 |
+
|
55 |
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir --upgrade -r requirements.txt
|
56 |
|
57 |
WORKDIR $HOME/app
|