Skip to content

Commit 2fe8c21

Browse files
committed
update Dockerfile to clone a clean copy of the repo instead of using local copy
1 parent f38433f commit 2fe8c21

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Dockerfile.webapp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ FROM nplinkerbase:latest
33

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

6-
COPY prototype /app/prototype
7-
COPY webapp /app/webapp
8-
9-
# not needed
10-
RUN rm -rf /app/prototype/nplinker/scoring/iokr/data && rm -rf /app/prototype/nplinker/scoring/iokr/iokr_venv
11-
126
WORKDIR /app
137

8+
# clone latest master version
9+
RUN cd /app && git clone https://github.com/sdrogers/nplinker nplinker
10+
1411
ENV LANG "en_GB.UTF-8"
1512
ENV LOCALE "C"
1613
# set a HOME variable because things often break if it's left unset
@@ -29,6 +26,6 @@ EXPOSE 5006/tcp
2926

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

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

0 commit comments

Comments
 (0)