Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -6,9 +6,12 @@ WORKDIR /app
|
|
6 |
|
7 |
# Copy all files to the container
|
8 |
COPY . .
|
|
|
|
|
9 |
|
10 |
# Install dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
12 |
|
13 |
# Expose the FastAPI port
|
14 |
EXPOSE 7860
|
|
|
6 |
|
7 |
# Copy all files to the container
|
8 |
COPY . .
|
9 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
10 |
+
|
11 |
|
12 |
# Install dependencies
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
+
RUN mkdir -p /app/cache
|
15 |
|
16 |
# Expose the FastAPI port
|
17 |
EXPOSE 7860
|