Skip to content

Commit

Permalink
Run as non root (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyer2 committed Dec 17, 2020
1 parent eec3a93 commit 5afc74b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@
# limitations under the License.
#

FROM quay.io/codait/max-base:v1.3.2
FROM quay.io/codait/max-base:v1.4.0

ARG model_bucket=https://max-cdn.cdn.appdomain.cloud/max-review-text-generator/1.0.0
ARG model_file=assets.tar.gz

WORKDIR /workspace

RUN wget -nv --show-progress --progress=bar:force:noscroll ${model_bucket}/${model_file} --output-document=assets/${model_file} && \
tar -x -C assets/ -f assets/${model_file} -v && rm assets/${model_file}

COPY requirements.txt /workspace
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . /workspace
COPY . .

# check file integrity
RUN sha512sum -c sha512sums.txt
Expand Down

0 comments on commit 5afc74b

Please sign in to comment.