Skip to content

Commit 980b02e

Browse files
Carlos SantanaSSaishruthi
andauthored
fix hadolint errors (#164)
Signed-off-by: Carlos Santana <csantana23@gmail.com> Co-authored-by: Saishruthi <saishruthi.tn@ibm.com>
1 parent 302e658 commit 980b02e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

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

19+
# hadolint ignore=DL3004
1920
RUN sudo apt-get update && sudo apt-get -y install libatlas3-base && sudo rm -rf /var/lib/apt/lists/*
2021

2122
ARG model_bucket=https://max-cdn.cdn.appdomain.cloud/max-object-detector/1.0.2
@@ -30,17 +31,23 @@ RUN if [ "$use_pre_trained_model" = "true" ] ; then\
3031
wget -nv --show-progress --progress=bar:force:noscroll ${model_bucket}/${data_file} --output-document=assets/${data_file} && \
3132
tar -x -C assets/ -f assets/${data_file} -v && rm assets/${data_file}; fi
3233

34+
# hadolint ignore=DL3045,DL4006
3335
RUN wget -O - -nv --show-progress --progress=bar:force:noscroll https://github.com/IBM/MAX-Object-Detector-Web-App/archive/v2.1.tar.gz | \
3436
tar zxvf - --strip-components=1 --wildcards 'MAX-Object-Detector-Web-App-*/static'
3537

38+
# hadolint ignore=DL3045,DL3059
3639
COPY requirements.txt .
40+
41+
# hadolint ignore=DL3042
3742
RUN pip install -r requirements.txt
3843

44+
# hadolint ignore=DL3045
3945
COPY . .
4046

4147
# Template substitution: Replace @model@ with the proper model name
4248
RUN sed s/@model@/${model}/ config.py.in > config.py
4349

50+
# hadolint ignore=DL3059,SC1075
4451
RUN if [ "$use_pre_trained_model" = "true" ] ; then \
4552
# validate downloaded pre-trained model assets
4653
sha512sum -c sha512sums-${model}.txt ; \
@@ -53,4 +60,5 @@ RUN if [ "$use_pre_trained_model" = "true" ] ; then \
5360

5461
EXPOSE 5000
5562

63+
# hadolint ignore=DL3025
5664
CMD python app.py

0 commit comments

Comments
 (0)