Browse Source

pre-built wheels

master
Sean Johnson 9 months ago
parent
commit
d7486f4958
  1. 21
      resource/Dockerfile

21
resource/Dockerfile

@ -18,6 +18,22 @@ RUN go get -d github.com/rancher/convoy && \
git checkout ${CONVOY_VERSION} && \
go install ./...
#
# --- WHEELS
#
FROM ${ALPINE_REPO}:${ALPINE_VERSION} as wheel
WORKDIR /deps
COPY requirements.txt /deps
RUN apk add --no-cache curl python3 python3-dev build-base && \
curl https://bootstrap.pypa.io/get-pip.py | python3 - && \
mkdir /wheel && \
pip install --no-use-pep517 -r requirements.txt && \
pip wheel -f /wheel -w /wheel -r requirements.txt
#
# --- APP
#
@ -25,12 +41,11 @@ RUN go get -d github.com/rancher/convoy && \
FROM ${ALPINE_REPO}:${ALPINE_VERSION}
COPY --from=build /go/bin/convoy /bin/convoy
COPY --from=wheel /wheel /wheel
ADD tools /tools
COPY requirements.txt /
RUN apk add --no-cache bash curl jq lvm2-libs python3 && \
curl https://bootstrap.pypa.io/get-pip.py | python3 - && \
pip install -r /requirements.txt && \
rm /requirements.txt
pip install /wheel/*.whl
ENTRYPOINT ["/bin/convoy"]
Loading…
Cancel
Save