Skip to content

Commit

Permalink
update Dockerfile to clone a clean copy of the repo instead of using …
Browse files Browse the repository at this point in the history
…local copy
  • Loading branch information
andrewramsay committed Sep 13, 2021
1 parent f38433f commit 2fe8c21
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile.webapp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ FROM nplinkerbase:latest

SHELL ["/bin/bash", "-c"]

COPY prototype /app/prototype
COPY webapp /app/webapp

# not needed
RUN rm -rf /app/prototype/nplinker/scoring/iokr/data && rm -rf /app/prototype/nplinker/scoring/iokr/iokr_venv

WORKDIR /app

# clone latest master version
RUN cd /app && git clone https://github.com/sdrogers/nplinker nplinker

ENV LANG "en_GB.UTF-8"
ENV LOCALE "C"
# set a HOME variable because things often break if it's left unset
Expand All @@ -29,6 +26,6 @@ EXPOSE 5006/tcp

# run the webapp
# TODO need to have a way to run the downloader part here
CMD cd /app && source activate bigscape && bokeh serve webapp/npapp --dev
CMD cd /app/nplinker && source activate bigscape && bokeh serve webapp/npapp --dev

# append this if not using port 5006 externally: --allow-websocket-origin=localhost:5010

0 comments on commit 2fe8c21

Please sign in to comment.