Skip to content

Commit

Permalink
move binder docker to pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Oct 24, 2024
1 parent da8484e commit ae4a21b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# currently we haven't published an official hydromt image yet, so for now
# I import from an export I've put on my own account. this should be moved
# to the official image as soon as it's published.
FROM deltares/hydromt:slim as binder
# Binder hard requires all of these steps when they build the imae
FROM deltares/hydromt:slim AS binder
# Binder hard requires all of these steps when they build the image
# therefore these steps aren't taken sooner

ENV HOME=/home/mambauser \
ENV HOME=/home/deltares \
NUMBA_CACHE_DIR=${HOME}/.cahce/numba\
USE_PYGEOS=0 \
PYTHONDONTWRITEBYTECODE=1 \
PYDEVD_DISABLE_FILE_VALIDATION=1
RUN pixi shell
WORKDIR ${HOME}
ENTRYPOINT ["micromamba","run","-n","hydromt"]
ENTRYPOINT []
CMD ["jupyter","notebook","--port=8888","--ip=0.0.0.0"]
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:bookworm-slim AS base
ARG PIXIENV
RUN apt-get update && apt-get install -y curl && apt clean && useradd deltares
RUN apt-get update && apt-get install -y curl && apt clean && useradd deltares --uid 1000

USER deltares
WORKDIR /home/deltares
Expand Down

0 comments on commit ae4a21b

Please sign in to comment.