Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
@@ -18,19 +18,16 @@ RUN apt-get update && apt-get install -y \
|
|
18 |
WORKDIR /app
|
19 |
|
20 |
# Create cache directory
|
21 |
-
RUN mkdir -p /app/cache
|
22 |
|
23 |
# Set the cache environment variable
|
24 |
ENV TRANSFORMERS_CACHE=/app/cache
|
25 |
|
26 |
-
# Install Python dependencies
|
27 |
-
RUN pip install --upgrade pip
|
28 |
-
|
29 |
# Copy the current directory contents into the container at /app
|
30 |
COPY . /app
|
31 |
|
32 |
# Install requirements
|
33 |
-
RUN pip install -r requirements.txt
|
34 |
|
35 |
# Unzip the data.zip file into the /app/data directory
|
36 |
RUN unzip data.zip -d /app/data
|
|
|
18 |
WORKDIR /app
|
19 |
|
20 |
# Create cache directory
|
21 |
+
RUN mkdir -p /app/cache && chmod +x /app/cache
|
22 |
|
23 |
# Set the cache environment variable
|
24 |
ENV TRANSFORMERS_CACHE=/app/cache
|
25 |
|
|
|
|
|
|
|
26 |
# Copy the current directory contents into the container at /app
|
27 |
COPY . /app
|
28 |
|
29 |
# Install requirements
|
30 |
+
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
|
31 |
|
32 |
# Unzip the data.zip file into the /app/data directory
|
33 |
RUN unzip data.zip -d /app/data
|