forked from templateflow/datalad-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from courtois-neuromod/cneuromod
changes for cneuromod actions
- Loading branch information
Showing
2 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.8-alpine as builder | ||
|
||
# Prepare environment | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
curl bzip2 git && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
RUN apk update && apk add --no-cache curl bzip2 gcc libffi-dev musl-dev | ||
|
||
ENV GIT_ANNEX_PACKAGE=git-annex-10.20220505-nodep_h1234567_0.tar.bz2 | ||
RUN pip install datalad pytest ssh_agent_setup | ||
|
||
RUN cd /usr/ && \ | ||
curl -sSL https://anaconda.org/conda-forge/git-annex/10.20220505/download/linux-64/$GIT_ANNEX_PACKAGE | \ | ||
tar -xj | ||
FROM python:3.8-alpine | ||
COPY --from=builder /usr/local /usr/local | ||
|
||
RUN pip install datalad pytest ssh_agent_setup | ||
RUN apk update && apk add --no-cache git openssh-client git-annex |