2019-06-17 09:01:30 +00:00
|
|
|
ARG ALPINE_VERSION=3.9.4
|
|
|
|
FROM alpine:${ALPINE_VERSION}
|
|
|
|
|
|
|
|
RUN apk add --no-cache git python3 python3-dev
|
2018-12-19 12:29:25 +00:00
|
|
|
|
|
|
|
# build wheels in first image
|
|
|
|
ADD . /tmp/src
|
|
|
|
RUN mkdir /tmp/wheelhouse \
|
|
|
|
&& cd /tmp/wheelhouse \
|
2019-06-17 09:01:30 +00:00
|
|
|
&& pip3 install wheel \
|
2018-12-19 12:29:25 +00:00
|
|
|
&& pip3 wheel --no-cache-dir /tmp/src
|
|
|
|
|
2019-06-17 09:01:30 +00:00
|
|
|
FROM alpine:${ALPINE_VERSION}
|
2018-12-19 12:29:25 +00:00
|
|
|
|
2019-07-10 16:43:29 +00:00
|
|
|
# install python, git, bash
|
|
|
|
RUN apk add --no-cache git git-lfs python3 bash
|
2018-12-19 12:29:25 +00:00
|
|
|
|
|
|
|
# install repo2docker
|
|
|
|
COPY --from=0 /tmp/wheelhouse /tmp/wheelhouse
|
|
|
|
RUN pip3 install --no-cache-dir /tmp/wheelhouse/*.whl
|
|
|
|
|
|
|
|
# add git-credential helper
|
|
|
|
COPY ./docker/git-credential-env /usr/local/bin/git-credential-env
|
|
|
|
RUN git config --system credential.helper env
|
2017-05-09 10:07:56 +00:00
|
|
|
|
2017-12-25 02:03:17 +00:00
|
|
|
# Used for testing purpose in ports.py
|
|
|
|
EXPOSE 52000
|