File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- ARG PY_VERSION=3.12
2
- FROM condaforge/miniforge3 AS builder
1
+ FROM continuumio/miniconda3:23.5.2-0-alpine AS builder
3
2
4
3
EXPOSE 8888
5
4
@@ -9,22 +8,23 @@ LABEL maintainer.name="mosdef-hub"\
9
8
ENV PATH /opt/conda/bin:$PATH
10
9
11
10
USER root
11
+
12
12
ADD . /mbuild
13
+
13
14
WORKDIR /mbuild
14
15
15
16
# Create a group and user
16
- RUN groupadd -r anaconda
17
- RUN useradd -r anaconda -g anaconda
17
+ RUN addgroup -S anaconda && adduser -S anaconda -G anaconda
18
18
19
- RUN apt update && apt install libarchive-dev &&\
19
+ RUN apk update && apk add libarchive &&\
20
20
conda update conda -yq && \
21
21
conda config --set always_yes yes --set changeps1 no && \
22
22
. /opt/conda/etc/profile.d/conda.sh && \
23
- sed -i -E "s/python.*$/python=" $(PY_VERSION) "/" environment-dev.yml && \
24
- mamba env create --file environment-dev.yml && \
23
+ conda install -c conda-forge mamba git && \
24
+ mamba env create --file environment-dev.yml python=3.12 && \
25
25
conda activate mbuild-dev && \
26
- mamba install -c conda-forge jupyter python= "$PY_VERSION" && \
27
- pip install . && \
26
+ mamba install -c conda-forge jupyter && \
27
+ pip install -e . && \
28
28
echo "source activate mbuild-dev" >> \
29
29
/home/anaconda/.profile && \
30
30
conda clean -afy && \
You can’t perform that action at this time.
0 commit comments