File size: 559 Bytes
520dc1a
2a28594
 
9be293d
d277b9f
d0f4021
 
2a28594
9be293d
da0de00
2a28594
14171b8
2a28594
9be293d
2a28594
94e68e2
 
54e1adc
2a28594
 
9d0c84a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae907862fcb6835c658fdb284867117fb0268ce

ENV GRADIO_SERVER_PORT=7860 \
    GRADIO_SERVER_NAME=0.0.0.0 \
    FASTEMBED_CACHE_PATH=/home/nonroot/fastembed \
    UV_PYTHON_INSTALL_DIR=/home/nonroot/python \
    UV_TOOL_DIR=/home/nonroot/tool

# skipcq: DOK-DL3018
RUN apk add --no-cache curl libstdc++ uv

USER nonroot

WORKDIR /home/nonroot

RUN uv tool install --no-cache chattr && \
    chown -R nonroot /home/nonroot

EXPOSE ${GRADIO_SERVER_PORT}

CMD ["uvx", "--no-cache", "chattr"]