Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,13 @@ WORKDIR /app
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
| 10 |
# Install the dependencies
|
| 11 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Copy the rest of the application code into the container
|
| 14 |
COPY . .
|
|
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
| 10 |
# Install the dependencies
|
| 11 |
+
RUN apt-get update && apt-get install -y git && \
|
| 12 |
+
pip install torch && \
|
| 13 |
+
pip install -r requirements.txt
|
| 14 |
+
|
| 15 |
+
# Set environment variables for cache and API key
|
| 16 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
|
| 17 |
+
ENV OPENAI_API_KEY=sk-proj-zufatzHdsNmcalxgJUG7T3BlbkFJJCw6YnyYqkJhS4xkvrm
|
| 18 |
|
| 19 |
# Copy the rest of the application code into the container
|
| 20 |
COPY . .
|