Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -39,10 +39,11 @@ COPY --chown=worker private_gpt/ private_gpt
|
|
39 |
COPY --chown=worker docs/ docs
|
40 |
COPY --chown=worker *.yaml *.md ./
|
41 |
|
42 |
-
USER
|
43 |
|
44 |
-
# Ensure the poetry binary is executable
|
45 |
RUN chmod +x /root/.local/bin/poetry
|
46 |
-
|
|
|
47 |
|
48 |
CMD ["poetry", "run", "python", "-m", "uvicorn", "private_gpt.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
39 |
COPY --chown=worker docs/ docs
|
40 |
COPY --chown=worker *.yaml *.md ./
|
41 |
|
42 |
+
USER root
|
43 |
|
44 |
+
# Ensure the poetry binary is executable
|
45 |
RUN chmod +x /root/.local/bin/poetry
|
46 |
+
|
47 |
+
USER worker
|
48 |
|
49 |
CMD ["poetry", "run", "python", "-m", "uvicorn", "private_gpt.main:app", "--host", "0.0.0.0", "--port", "7860"]
|