1616
1717FROM quay.io/codait/max-base:v1.4.0
1818
19+ # hadolint ignore=DL3004
1920RUN sudo apt-get update && sudo apt-get -y install libatlas3-base && sudo rm -rf /var/lib/apt/lists/*
2021
2122ARG 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
3335RUN 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
3639COPY requirements.txt .
40+
41+ # hadolint ignore=DL3042
3742RUN pip install -r requirements.txt
3843
44+ # hadolint ignore=DL3045
3945COPY . .
4046
4147# Template substitution: Replace @model@ with the proper model name
4248RUN sed s/@model@/${model}/ config.py.in > config.py
4349
50+ # hadolint ignore=DL3059,SC1075
4451RUN 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
5461EXPOSE 5000
5562
63+ # hadolint ignore=DL3025
5664CMD python app.py
0 commit comments