Spaces:
Sleeping
Sleeping
.................
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -17,8 +17,8 @@ ENV PYTHONPATH="/app"
|
|
17 |
# Set the HF_HOME to a writable directory
|
18 |
ENV HF_HOME="/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
|
@@ -50,15 +50,14 @@ ENV PYTHONPATH="/app"
|
|
50 |
# Set the HF_HOME to a writable directory
|
51 |
ENV HF_HOME="/app/cache"
|
52 |
|
53 |
-
# Create the cache directory
|
54 |
-
RUN mkdir -p /app/cache
|
55 |
|
56 |
# Expose the API port
|
57 |
EXPOSE 9999
|
58 |
|
59 |
# Run the service manager
|
60 |
ENTRYPOINT ["python", "api/service_manager.py"]
|
61 |
-
|
62 |
# FROM python:3.9 as core
|
63 |
#
|
64 |
# COPY ./core/requirements.txt ./requirements.txt
|
|
|
17 |
# Set the HF_HOME to a writable directory
|
18 |
ENV HF_HOME="/app/cache"
|
19 |
|
20 |
+
# Create the cache directory and set correct permissions
|
21 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
22 |
|
23 |
# Run the initialization script to load and serialize the dataset
|
24 |
RUN python ./core/initialization.py
|
|
|
50 |
# Set the HF_HOME to a writable directory
|
51 |
ENV HF_HOME="/app/cache"
|
52 |
|
53 |
+
# Create the cache directory and set correct permissions
|
54 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
55 |
|
56 |
# Expose the API port
|
57 |
EXPOSE 9999
|
58 |
|
59 |
# Run the service manager
|
60 |
ENTRYPOINT ["python", "api/service_manager.py"]
|
|
|
61 |
# FROM python:3.9 as core
|
62 |
#
|
63 |
# COPY ./core/requirements.txt ./requirements.txt
|