Spaces:
Runtime error
Runtime error
Commit
·
2b915b0
1
Parent(s):
6c0a4b3
added new command to bash
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -10,7 +10,8 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
10 |
COPY . /app
|
11 |
|
12 |
# Create a script to set up the directory and environment variable
|
13 |
-
RUN echo "
|
|
|
14 |
echo "export TRANSFORMERS_CACHE=/app/.cache" >> setup.sh && \
|
15 |
chmod +x setup.sh
|
16 |
|
|
|
10 |
COPY . /app
|
11 |
|
12 |
# Create a script to set up the directory and environment variable
|
13 |
+
RUN echo "#!/bin/bash" > setup.sh && \
|
14 |
+
echo "mkdir -p /app/.cache" > setup.sh && \
|
15 |
echo "export TRANSFORMERS_CACHE=/app/.cache" >> setup.sh && \
|
16 |
chmod +x setup.sh
|
17 |
|