Skip to content

Commit 818a053

Browse files
committed
simpler docker workflow
1 parent 6a97e37 commit 818a053

File tree

2 files changed

+27
-236
lines changed

2 files changed

+27
-236
lines changed

docker/Dockerfile

+27-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,32 @@
55
# STEP 1 - Base image
66
FROM jupyter/base-notebook
77

8-
# STEP 2 & 3 - Label and environment file
8+
# STEP 2 - Label
99
LABEL maintainer="Felix Soubelet <[email protected]>"
10-
COPY docker/environment.yml /home/jovyan/environment.yml
1110

12-
# STEP 4 - Create the PHD conda environment
13-
RUN conda env create --file ./environment.yml --force \
14-
&& /opt/conda/bin/conda clean --all --quiet --yes \
15-
&& /opt/conda/envs/PHD/bin/ipython kernel install --user --name=PHD
11+
# STEP 3 - Let mamba install packages
12+
RUN mamba install --yes \
13+
black \
14+
click \
15+
fastparquet \
16+
h5py \
17+
hdf5 \
18+
ipykernel \
19+
isort \
20+
joblib \
21+
loguru \
22+
matplotlib \
23+
numpy \
24+
pandas \
25+
pendulum \
26+
pyarrow \
27+
pydantic \
28+
requests \
29+
rich \
30+
scikit-learn \
31+
sdds \
32+
sympy \
33+
tfs-pandas \
34+
scipy && \
35+
python -m pip install pyhdtoolkit pynaff && \
36+
conda clean --all --quiet --yes \

docker/environment.yml

-230
This file was deleted.

0 commit comments

Comments
 (0)