Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -16,7 +16,12 @@ RUN apt-get update && apt-get install -y \
|
|
16 |
|
17 |
# Create a working directory
|
18 |
WORKDIR /app
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# Install Python dependencies
|
22 |
RUN pip install --upgrade pip
|
@@ -24,11 +29,11 @@ RUN pip install --upgrade pip
|
|
24 |
# Copy the current directory contents into the container at /app
|
25 |
COPY . /app
|
26 |
|
27 |
-
#
|
28 |
-
|
29 |
|
30 |
# Unzip the data.zip file into the /app/data directory
|
31 |
RUN unzip data.zip -d /app/data
|
32 |
|
33 |
# Set the default command to run when starting the container
|
34 |
-
CMD ["python", "m5.py"]
|
|
|
16 |
|
17 |
# Create a working directory
|
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
|
|
|
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
|
37 |
|
38 |
# Set the default command to run when starting the container
|
39 |
+
CMD ["python", "m5.py"]
|