Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
fix: docker rootless (#176)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update Dockerfile

* fix: rootless

* Update Dockerfile
  • Loading branch information
Julien Bouquillon authored Dec 13, 2023
1 parent fcb1584 commit fb0085a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ RUN set -x \

ENV MODEL_NAME sentqam

RUN mkdir -p /models/sentqam/3
RUN addgroup --system --gid 1000 docker && adduser --system --uid 1000 docker
RUN chown -R 1000:1000 /models/sentqam/3

USER 1000

WORKDIR /models/sentqam/3

RUN curl -L https://tfhub.dev/google/universal-sentence-encoder-multilingual-qa/3?tf-hub-format=compressed --output sentqam.tar.gz
RUN tar -zxf sentqam.tar.gz --directory ./

USER 1234

0 comments on commit fb0085a

Please sign in to comment.