From bf161ff005da5e4ff84a2f745393c132a296acad Mon Sep 17 00:00:00 2001 From: Producer Matt <58014742+ProducerMatt@users.noreply.github.com> Date: Sat, 17 Jun 2023 15:39:50 -0500 Subject: [PATCH] Dockerfile: move to Alpine --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f69e3b3f..23e01aeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -FROM continuumio/miniconda3 +FROM continuumio/miniconda3:master-alpine -# TODO: only run when not on x64 -RUN apt-get update -RUN apt-get install gcc -y + +RUN apk update +RUN apk upgrade +RUN apk add bash git +RUN apk add gcc # TODO: only run when not on x64 RUN mkdir /stampydata WORKDIR /stampy @@ -12,7 +14,7 @@ COPY environment.yml . RUN --mount=type=cache,mode=0755,target=/root/.cache/pip conda env create -f environment.yml # Make RUN commands use the new environment: -RUN echo "conda activate stampy" >> ~/.bashrc +RUN echo "conda activate stampy" >> ~/.profile SHELL ["/bin/bash", "--login", "-c"] RUN --mount=type=cache,mode=0755,target=/root/.cache/pip conda activate stampy && conda install pytest