Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -19,6 +19,11 @@ RUN apt-get update && apt-get install -y git && apt-get clean
|
|
19 |
|
20 |
RUN git clone https://github.com/kapllan/SmartOpinion.git /app
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
# Set the working directory in the container
|
24 |
WORKDIR /app
|
|
|
19 |
|
20 |
RUN git clone https://github.com/kapllan/SmartOpinion.git /app
|
21 |
|
22 |
+
# Create and set permissions for the logs directory
|
23 |
+
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
24 |
+
|
25 |
+
# Set the Hugging Face cache environment variable
|
26 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
27 |
|
28 |
# Set the working directory in the container
|
29 |
WORKDIR /app
|