Spaces:
Runtime error
Runtime error
fix: use python entrypoint with chown /usr/local/lib/python3.10
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -3,17 +3,16 @@ FROM ghcr.io/cinnamon/kotaemon:main-full as base_image
|
|
| 3 |
|
| 4 |
USER root
|
| 5 |
RUN useradd -m -u 1000 user || true
|
| 6 |
-
RUN rm -rf /install && ln -s /usr/local /install || true
|
| 7 |
RUN chmod -R a+rX /usr/local || true
|
| 8 |
RUN chown -R user:user /app || true
|
|
|
|
| 9 |
|
| 10 |
WORKDIR /app
|
| 11 |
COPY --chown=user:user . /app
|
| 12 |
|
| 13 |
USER user
|
| 14 |
-
ENV PATH="/app/.venv/bin:$PATH"
|
| 15 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 16 |
ENV GRADIO_SERVER_PORT=7860
|
| 17 |
|
| 18 |
-
ENTRYPOINT ["
|
| 19 |
EXPOSE 7860
|
|
|
|
| 3 |
|
| 4 |
USER root
|
| 5 |
RUN useradd -m -u 1000 user || true
|
|
|
|
| 6 |
RUN chmod -R a+rX /usr/local || true
|
| 7 |
RUN chown -R user:user /app || true
|
| 8 |
+
RUN chown -R user:user /usr/local/lib/python3.10 || true
|
| 9 |
|
| 10 |
WORKDIR /app
|
| 11 |
COPY --chown=user:user . /app
|
| 12 |
|
| 13 |
USER user
|
|
|
|
| 14 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 15 |
ENV GRADIO_SERVER_PORT=7860
|
| 16 |
|
| 17 |
+
ENTRYPOINT ["python", "app.py"]
|
| 18 |
EXPOSE 7860
|