Spaces:
Sleeping
Sleeping
.................
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
@@ -14,6 +14,12 @@ COPY ./core ./core
|
|
14 |
# Set the PYTHONPATH to include the /app directory
|
15 |
ENV PYTHONPATH="/app"
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
# Run the initialization script to load and serialize the dataset
|
18 |
RUN python ./core/initialization.py
|
19 |
|
@@ -41,6 +47,12 @@ COPY --from=core /app/core/engine.pickle /app/api/engine.pickle
|
|
41 |
# Set the PYTHONPATH to include the /app directory
|
42 |
ENV PYTHONPATH="/app"
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
# Expose the API port
|
45 |
EXPOSE 9999
|
46 |
|
|
|
14 |
# Set the PYTHONPATH to include the /app directory
|
15 |
ENV PYTHONPATH="/app"
|
16 |
|
17 |
+
# Set the TRANSFORMERS_CACHE to a writable directory
|
18 |
+
ENV TRANSFORMERS_CACHE="/app/cache"
|
19 |
+
|
20 |
+
# Create the cache directory
|
21 |
+
RUN mkdir -p /app/cache
|
22 |
+
|
23 |
# Run the initialization script to load and serialize the dataset
|
24 |
RUN python ./core/initialization.py
|
25 |
|
|
|
47 |
# Set the PYTHONPATH to include the /app directory
|
48 |
ENV PYTHONPATH="/app"
|
49 |
|
50 |
+
# Set the TRANSFORMERS_CACHE to a writable directory
|
51 |
+
ENV TRANSFORMERS_CACHE="/app/cache"
|
52 |
+
|
53 |
+
# Create the cache directory
|
54 |
+
RUN mkdir -p /app/cache
|
55 |
+
|
56 |
# Expose the API port
|
57 |
EXPOSE 9999
|
58 |
|