Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -26,6 +26,9 @@ ENV PYTHONUNBUFFERED=1
|
|
26 |
ENV PORT=7860
|
27 |
EXPOSE 7860
|
28 |
|
|
|
|
|
|
|
29 |
# Ensure the worker user has the necessary permissions
|
30 |
RUN mkdir -p local_data/private_gpt/chromadb && chown -R worker:worker local_data/private_gpt
|
31 |
|
|
|
26 |
ENV PORT=7860
|
27 |
EXPOSE 7860
|
28 |
|
29 |
+
# Create the worker user with the appropriate UID and GID
|
30 |
+
RUN useradd -m -u 1000 -U worker
|
31 |
+
|
32 |
# Ensure the worker user has the necessary permissions
|
33 |
RUN mkdir -p local_data/private_gpt/chromadb && chown -R worker:worker local_data/private_gpt
|
34 |
|