File size: 614 Bytes
c19e0aa 742dcc2 6a0bf35 e10266c d05aa08 c7e4472 fc8b1ce e10266c |
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 |
FROM ghcr.io/huggingface/text-embeddings-inference:cpu-1.2
RUN useradd -m -u 1000 user
RUN mkdir -p /data
RUN chown -R user /data
RUN chmod -R 777 /data
RUN mkdir -p /home/user/.cache/huggingface
RUN chown -R user /home/user/.cache/huggingface
RUN chmod -R 777 /home/user/
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
COPY --chown=user ./start.sh $HOME/app/start.sh
RUN chmod +x $HOME/app/start.sh
RUN ls -alh .
ENTRYPOINT ["./start.sh"]
|