Chattr / Dockerfile
MH0386's picture
Update Dockerfile
2dc86de verified
raw
history blame
562 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 \
PATH=/home/nonroot/.local/bin:$PATH
COPY --from=ghcr.io/astral-sh/uv:latest@sha256:67b2bcccdc103d608727d1b577e58008ef810f751ed324715eb60b3f0c040d30 \
/uv /uvx /usr/bin/
# skipcq: DOK-DL3018
RUN apk add --no-cache curl libstdc++
USER nonroot
WORKDIR /home/nonroot
EXPOSE ${GRADIO_SERVER_PORT}
CMD ["uvx", "chattr"]