Spaces:
Runtime error

Leodass1433 commited on
Commit
941f38d
·
verified ·
1 Parent(s): 35364b3

fix: update Dockerfile for Hugging Face Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -15
Dockerfile CHANGED
@@ -1,15 +1,17 @@
1
- FROM ghcr.io/cinnamon/kotaemon:main-full as base_image
2
-
3
- USER root
4
- RUN id -u user &>/dev/null || useradd -m -u 1000 user
5
- WORKDIR /app
6
-
7
- COPY --chown=user:user . /app
8
- RUN chown -R user:user /app
9
-
10
- USER user
11
- ENV GRADIO_SERVER_NAME=0.0.0.0
12
- ENV GRADIO_SERVER_PORT=7860
13
-
14
- ENTRYPOINT ["python", "app.py"]
15
- EXPOSE 7860
 
 
 
1
+ # syntax=docker/dockerfile:1.0.0-experimental
2
+ 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
11
+
12
+ USER user
13
+ ENV GRADIO_SERVER_NAME=0.0.0.0
14
+ ENV GRADIO_SERVER_PORT=7860
15
+
16
+ ENTRYPOINT ["python", "app.py"]
17
+ EXPOSE 7860