Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: move to Alpine #291

Merged
merged 1 commit into from
Jun 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
Loading