Chattr / Dockerfile
MH0386's picture
Update Dockerfile
8412909 verified
raw
history blame
563 Bytes
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 ["/home/nonroot/.local/bin/chattr"]