forked from SwissDataScienceCenter/renku-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.cli
More file actions
29 lines (20 loc) · 830 Bytes
/
Dockerfile.cli
File metadata and controls
29 lines (20 loc) · 830 Bytes
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
FROM python:3.7-alpine as base
RUN apk add --no-cache git && \
pip install --no-cache --upgrade pip
FROM base as builder
ENV BUILD_DEPS "alpine-sdk g++ gcc linux-headers libxslt-dev zeromq-dev libffi-dev openssl-dev"
RUN apk add --no-cache $BUILD_DEPS
COPY . /code/renku
WORKDIR /code/renku
RUN pip wheel --wheel-dir /wheels . && \
pip install --no-index --no-warn-script-location --root=/pythonroot/ /wheels/*.whl && \
apk del --purge $BUILD_DEPS
FROM base
RUN apk add --no-cache --allow-untrusted \
--repository http://dl-cdn.alpinelinux.org/alpine/latest-stable/community \
--repository http://dl-cdn.alpinelinux.org/alpine/latest-stable/main \
--repository http://nl.alpinelinux.org/alpine/edge/community \
git-lfs && \
git lfs install
COPY --from=builder /pythonroot/ /
CMD ["renku"]