Skip to content

Commit

Permalink
Merge pull request #69 from delta-mpc/0.8.2-alpha3
Browse files Browse the repository at this point in the history
bug fix: install dependcies in dockerfile correctly
  • Loading branch information
mh739025250 authored Mar 15, 2023
2 parents 9202d9a + f15452a commit e382278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,17 @@ ADD web/vue.config.js vue.config.js

RUN npm run build

FROM jupyterhub/jupyterhub:1.4.2 as pybuilder

WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip wheel -w whls -r requirements.txt

FROM jupyterhub/jupyterhub:1.4.2
# Create oauthenticator directory and put necessary files in it

WORKDIR /application
COPY --from=pybuilder /app/whls /application/whls
COPY requirements.txt /application/requirements.txt
COPY --from=builder /application/main /application/main
COPY --from=webbuilder /application/web/dist /application/web

RUN apt-get update -y && \
apt-get install -y gettext sqlite3 nginx && \
pip install --no-cache-dir whls/*.whl && \
rm -rf whls && \
pip install --no-cache-dir -r requirements.txt && \
mkdir /srv/oauthenticator && \
mkdir /srv/ipython && \
mkdir /srv/ipython/examples && \
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ jupyterlab==3.1.6
notebook==6.4.3
delta-task==0.8.1
oauthenticator==14.2.0
jupyterhub==1.4.2

-f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
torch==1.8.2+cpu

0 comments on commit e382278

Please sign in to comment.