Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update Dockerfile to pull latest version of web app #100

Merged
merged 2 commits into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ RUN if [ "$use_pre_trained_model" = "true" ] ; then\
wget -nv --show-progress --progress=bar:force:noscroll ${model_bucket}/${data_file} --output-document=assets/${data_file} && \
tar -x -C assets/ -f assets/${data_file} -v && rm assets/${data_file}; fi

RUN wget -nv --show-progress --progress=bar:force:noscroll https://github.com/IBM/MAX-Object-Detector-Web-App/archive/v1.2.tar.gz && \
tar -xf v1.2.tar.gz && rm v1.2.tar.gz
RUN wget -nv --show-progress --progress=bar:force:noscroll https://github.com/IBM/MAX-Object-Detector-Web-App/archive/v2.0.tar.gz && \
tar -xf v2.0.tar.gz && rm v2.0.tar.gz

RUN mv ./MAX-Object-Detector-Web-App-1.2/static static
RUN mv ./MAX-Object-Detector-Web-App-2.0/static static

COPY requirements.txt /workspace
RUN pip install -r requirements.txt
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.arm32v7
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ RUN if [ "$use_pre_trained_model" = "true" ] ; then\
wget -nv --show-progress --progress=bar:force:noscroll ${model_bucket}/${data_file} --output-document=assets/${data_file} && \
tar -x -C assets/ -f assets/${data_file} -v && rm assets/${data_file}; fi

RUN wget -nv --show-progress --progress=bar:force:noscroll https://github.com/IBM/MAX-Object-Detector-Web-App/archive/v1.2.tar.gz && \
tar -xf v1.2.tar.gz && rm v1.2.tar.gz
RUN wget -nv --show-progress --progress=bar:force:noscroll https://github.com/IBM/MAX-Object-Detector-Web-App/archive/v2.0.tar.gz && \
tar -xf v2.0.tar.gz && rm v2.0.tar.gz

RUN mv ./MAX-Object-Detector-Web-App-1.2/static static
RUN mv ./MAX-Object-Detector-Web-App-2.0/static static

COPY requirements.txt /workspace
RUN rm -rf /usr/local/lib/python3.7/site-packages/pip
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# API metadata
API_TITLE = 'MAX Object Detector'
API_DESC = 'Localize and identify multiple objects in a single image.'
API_VERSION = '1.2.0'
API_VERSION = '1.3.0'
xuhdev marked this conversation as resolved.
Show resolved Hide resolved

# default model
# name of model to download
Expand Down