Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Feb 4, 2025
1 parent 3aeb5f2 commit 7cee650
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@

FROM python:3.12-alpine AS builder

RUN apk add --no-cache curl bzip2 gcc libffi-dev musl-dev
RUN pip install --no-cache-dir virtualenv
RUN apk add --no-cache curl bzip2 gcc libffi-dev musl-dev py3-virtualenv
RUN virtualenv /opt/venv && source /opt/venv/bin/activate && \
python -m pip install --no-cache-dir datalad pytest ssh_agent_setup
pip install --no-cache-dir datalad pytest ssh_agent_setup

FROM python:3.12-alpine
RUN apk add --no-cache git openssh-client git-annex
RUN apk add --no-cache git openssh-client git-annex py3-virtualenv
COPY --from=builder /opt/venv /opt/venv

ENV PATH=$PATH:/opt/venv/bin

0 comments on commit 7cee650

Please sign in to comment.