Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -13,8 +13,11 @@ RUN apt-get update && apt-get install -y git && \
|
|
| 13 |
pip install -r requirements.txt
|
| 14 |
|
| 15 |
# Set environment variables for cache and API key
|
| 16 |
-
ENV
|
| 17 |
-
ENV OPENAI_API_KEY=
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Copy the rest of the application code into the container
|
| 20 |
COPY . .
|
|
|
|
| 13 |
pip install -r requirements.txt
|
| 14 |
|
| 15 |
# Set environment variables for cache and API key
|
| 16 |
+
ENV HF_HOME=/app/.cache/huggingface
|
| 17 |
+
ENV OPENAI_API_KEY=your_openai_api_key_here
|
| 18 |
+
|
| 19 |
+
# Create cache directory and set permissions
|
| 20 |
+
RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache
|
| 21 |
|
| 22 |
# Copy the rest of the application code into the container
|
| 23 |
COPY . .
|