Skip to content

Commit

Permalink
go back to alpine based image for now
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Jan 28, 2025
1 parent 06f7a7a commit f705eae
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG PY_VERSION=3.12
FROM condaforge/miniforge3 AS builder
FROM continuumio/miniconda3:23.5.2-0-alpine AS builder

EXPOSE 8888

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

USER root

ADD . /mbuild

WORKDIR /mbuild

# Create a group and user
RUN groupadd -r anaconda
RUN useradd -r anaconda -g anaconda
RUN addgroup -S anaconda && adduser -S anaconda -G anaconda

RUN apt update && apt install libarchive-dev &&\
RUN apk update && apk add libarchive &&\
conda update conda -yq && \
conda config --set always_yes yes --set changeps1 no && \
. /opt/conda/etc/profile.d/conda.sh && \
sed -i -E "s/python.*$/python="$(PY_VERSION)"/" environment-dev.yml && \
mamba env create --file environment-dev.yml && \
conda install -c conda-forge mamba git && \
mamba env create --file environment-dev.yml python=3.12 && \
conda activate mbuild-dev && \
mamba install -c conda-forge jupyter python="$PY_VERSION" && \
pip install . && \
mamba install -c conda-forge jupyter && \
pip install -e .&& \
echo "source activate mbuild-dev" >> \
/home/anaconda/.profile && \
conda clean -afy && \
Expand Down

0 comments on commit f705eae

Please sign in to comment.