Skip to content

Commit f705eae

Browse files
committed
go back to alpine based image for now
1 parent 06f7a7a commit f705eae

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Dockerfile

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
ARG PY_VERSION=3.12
2-
FROM condaforge/miniforge3 AS builder
1+
FROM continuumio/miniconda3:23.5.2-0-alpine AS builder
32

43
EXPOSE 8888
54

@@ -9,22 +8,23 @@ LABEL maintainer.name="mosdef-hub"\
98
ENV PATH /opt/conda/bin:$PATH
109

1110
USER root
11+
1212
ADD . /mbuild
13+
1314
WORKDIR /mbuild
1415

1516
# 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
1818

19-
RUN apt update && apt install libarchive-dev &&\
19+
RUN apk update && apk add libarchive &&\
2020
conda update conda -yq && \
2121
conda config --set always_yes yes --set changeps1 no && \
2222
. /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 && \
2525
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 .&& \
2828
echo "source activate mbuild-dev" >> \
2929
/home/anaconda/.profile && \
3030
conda clean -afy && \

0 commit comments

Comments
 (0)