Spaces:
Runtime error
Runtime error
add cache-dir (/app/hub, same as HF_HOME env setting) and set the permission (777)
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -17,6 +17,9 @@ RUN python -m pip install -r requirements.txt
|
|
17 |
WORKDIR /app
|
18 |
COPY . /app
|
19 |
|
|
|
|
|
|
|
20 |
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
|
21 |
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
22 |
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
|
|
17 |
WORKDIR /app
|
18 |
COPY . /app
|
19 |
|
20 |
+
RUN mkdir -p /app/hub
|
21 |
+
RUN chmod 777 /app/hub
|
22 |
+
|
23 |
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
|
24 |
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
25 |
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|