Spaces:
Sleeping
Sleeping
File size: 704 Bytes
b89115f 433b752 858027e 433b752 3dd8bce 433b752 4765b26 b454b26 433b752 94641ea 370254e 3061469 510758e 0f79948 9bd04be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
ARG GRADIO_PORT
ARG MODEL_NAME
ARG QUANTIZE
FROM ghcr.io/huggingface/text-generation-inference:latest
ENV TZ=Europe/Paris \
PORT=3000
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gnupg \
curl \
gettext && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh entrypoint.sh
RUN mkdir -p /data/db
RUN chown -R 1000:1000 /data
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY app app
RUN pip install -r app/requirements.txt
ENV GRADIO_PORT=$GRADIO_PORT
ENV MODEL_NAME=$MODEL_NAME
ENV QUANTIZE=$QUANTIZE
ENTRYPOINT ["/bin/bash"]
CMD ["entrypoint.sh"] |