Spaces:
Runtime error
Runtime error
docker file
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -7,9 +7,15 @@ WORKDIR /app
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
|
|
|
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
|
|
|
|
|
|
13 |
# Make port 8000 available to the world outside this container
|
14 |
EXPOSE 8000
|
15 |
|
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
+
# Set environment variables
|
11 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
12 |
+
|
13 |
# Install any needed packages specified in requirements.txt
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
+
# Create the cache directory
|
17 |
+
RUN mkdir -p /app/cache
|
18 |
+
|
19 |
# Make port 8000 available to the world outside this container
|
20 |
EXPOSE 8000
|
21 |
|