Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -11
Dockerfile
CHANGED
@@ -2,20 +2,11 @@ FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae9078
|
|
2 |
|
3 |
ENV GRADIO_SERVER_PORT=7860 \
|
4 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
5 |
-
FASTEMBED_CACHE_PATH=/home/nonroot/fastembed
|
6 |
-
UV_PYTHON_INSTALL_DIR=/home/nonroot/python \
|
7 |
-
UV_TOOL_DIR=/home/nonroot/tool
|
8 |
|
9 |
# skipcq: DOK-DL3018
|
10 |
RUN apk add --no-cache curl libstdc++ uv
|
11 |
|
12 |
-
USER nonroot
|
13 |
-
|
14 |
-
WORKDIR /home/nonroot
|
15 |
-
|
16 |
-
RUN uv tool install --no-cache chattr && \
|
17 |
-
chown -R nonroot /home/nonroot
|
18 |
-
|
19 |
EXPOSE ${GRADIO_SERVER_PORT}
|
20 |
|
21 |
-
CMD ["
|
|
|
2 |
|
3 |
ENV GRADIO_SERVER_PORT=7860 \
|
4 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
5 |
+
FASTEMBED_CACHE_PATH=/home/nonroot/fastembed
|
|
|
|
|
6 |
|
7 |
# skipcq: DOK-DL3018
|
8 |
RUN apk add --no-cache curl libstdc++ uv
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
EXPOSE ${GRADIO_SERVER_PORT}
|
11 |
|
12 |
+
CMD ["uvx", "chattr"]
|