Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
@@ -1,15 +1,11 @@
|
|
1 |
# Use the base image from your Docker container
|
2 |
FROM trcoot/cpu-casuallm:latest
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
|
7 |
-
# Set the environment variable for the cache directory
|
8 |
-
ENV TRANSFORMERS_CACHE=/app/.cache
|
9 |
|
10 |
# Create the cache directory and give the appropriate permissions
|
11 |
RUN mkdir -p /app/.cache && chmod 777 /app/.cache
|
12 |
|
13 |
-
|
14 |
# Start the application (modify this based on your app's entry point)
|
15 |
CMD ["python", "app.py"]
|
|
|
1 |
# Use the base image from your Docker container
|
2 |
FROM trcoot/cpu-casuallm:latest
|
3 |
|
4 |
+
# Set the environment variable for the Hugging Face cache directory
|
5 |
+
ENV HF_HOME=/app/.cache
|
|
|
|
|
|
|
6 |
|
7 |
# Create the cache directory and give the appropriate permissions
|
8 |
RUN mkdir -p /app/.cache && chmod 777 /app/.cache
|
9 |
|
|
|
10 |
# Start the application (modify this based on your app's entry point)
|
11 |
CMD ["python", "app.py"]
|