Skip to content

Commit

Permalink
Run as non root (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyer2 authored Dec 17, 2020
1 parent d5039e1 commit 186f0fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@
# 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-inception-resnet-v2/1.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} && \
mkdir -p ~/.keras/models && mv assets/imagenet_class_index.json ~/.keras/models/imagenet_class_index.json

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 186f0fb

Please sign in to comment.