-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
34 lines (28 loc) · 1023 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# define build arguments
ARG RENKU_BASE=renku/renkulab-py:latest
ARG BASE_IMAGE=python:3.9-slim-buster
# define base images
FROM $RENKU_BASE as renku_base
FROM $BASE_IMAGE
LABEL maintainer="Swiss Data Science Center <[email protected]>"
# install dependencies
RUN apt-get update -y && \
apt-get install -y curl && \
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get update -y && \
apt-get install -y gcc git git-lfs nodejs && \
apt-get purge && \
apt-get clean && \
apt autoremove --yes && \
rm -rf /var/lib/apt/lists/*
# Install Renku python without pipx in a non-user location
RUN python3 -m pip install --no-cache pipenv
RUN virtualenv /share/.renku && \
. /share/.renku/bin/activate && \
pip install --no-cache renku && \
deactivate && \
ln -s /share/.renku/bin/renku /share/bin
ENV PATH /share/bin:$PATH
# inject entrypoint.sh
COPY --from=renku_base /entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]