Spaces:
Runtime error
Runtime error
fix: symlink /usr/local to /install for python venv base_prefix
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -3,8 +3,9 @@ FROM ghcr.io/cinnamon/kotaemon:main-full as base_image
|
|
| 3 |
|
| 4 |
USER root
|
| 5 |
RUN useradd -m -u 1000 user || true
|
|
|
|
|
|
|
| 6 |
RUN chown -R user:user /app || true
|
| 7 |
-
RUN chown -R user:user /usr/local/lib/python3.10 || true
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
COPY --chown=user:user . /app
|
|
|
|
| 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
|