Skip to content

Commit

Permalink
Don't ignore SC1075 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev authored Sep 23, 2021
1 parent 68382a8 commit 2db3c03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ COPY . .
# Template substitution: Replace @model@ with the proper model name
RUN sed s/@model@/${model}/ config.py.in > config.py

# hadolint ignore=DL3059,SC1075
# hadolint ignore=DL3059
RUN if [ "$use_pre_trained_model" = "true" ] ; then \
# validate downloaded pre-trained model assets
sha512sum -c sha512sums-${model}.txt ; \
else \
elif [ -d "./custom_assets/" ] ; then \
# rename the directory that contains the custom-trained model artifacts
if [ -d "./custom_assets/" ] ; then \
rm -rf ./assets && ln -s ./custom_assets ./assets ; \
fi \
rm -rf ./assets && ln -s ./custom_assets ./assets ; \
fi

EXPOSE 5000
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile.arm32v7
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ RUN sed s/@model@/${model}/ config.py.in > config.py
RUN if [ "$use_pre_trained_model" = "true" ] ; then \
# validate downloaded pre-trained model assets
sha512sum -c sha512sums-${model}.txt ; \
else \
elif [ -d "./custom_assets/" ] ; then \
# rename the directory that contains the custom-trained model artifacts
if [ -d "./custom_assets/" ] ; then \
rm -rf ./assets && ln -s ./custom_assets ./assets ; \
fi \
rm -rf ./assets && ln -s ./custom_assets ./assets ; \
fi

EXPOSE 5000
Expand Down

0 comments on commit 2db3c03

Please # to comment.