Skip to content

Commit

Permalink
docker: Fix for new jupyter versions and fix nglview
Browse files Browse the repository at this point in the history
  • Loading branch information
wangenau committed Jul 10, 2023
1 parent a1ffd5f commit a397d8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ RUN pip install torch --index-url https://download.pytorch.org/whl/cpu --no-cach
RUN git clone https://gitlab.com/wangenau/eminus.git \
&& pip install -e eminus/[all,dev] --no-cache-dir

# Downgrade Jupyter client to fix nglview
RUN pip install jupyter_client==7.* --no-cache-dir

# Set up the application stage
FROM python:3.11-slim
LABEL maintainer="wangenau"
Expand All @@ -28,7 +31,9 @@ LABEL maintainer="wangenau"
RUN addgroup --system eminus \
&& adduser --system --group eminus \
&& mkdir /usr/app/ \
&& chown eminus:eminus /usr/app/
&& chown eminus:eminus /usr/app/ \
&& mkdir /nonexistent \
&& chown eminus:eminus /nonexistent
WORKDIR /usr/app/
COPY --chown=eminus:eminus --from=build /usr/app/venv/ ./venv/
COPY --chown=eminus:eminus --from=build /usr/app/eminus/ ./eminus/
Expand Down

0 comments on commit a397d8b

Please sign in to comment.