dockerfiles/isso/Dockerfile

19 lines
599 B
Docker

FROM alpine:3.7 as builder
RUN mkdir -p /var/cache/apk && ln -s /var/cache/apk /etc/apk/cache && apk add \
--update py3-pip gcc musl-dev python3-dev
RUN pip3 install wheel && pip3 wheel --wheel-dir=/root/wheel isso
FROM alpine:3.7 as production
COPY --from=builder /root/wheel /root/wheel
COPY --from=builder /root/.cache /root/.cache
COPY --from=builder /etc/apk/cache /etc/apk/cache
RUN apk add --update py3-pip && pip3 install --no-index \
--find-links=/root/wheel isso
WORKDIR /isso
EXPOSE 8080
RUN rm -rf /root/.cache /etc/apk/cache/* /root/wheel/
ENTRYPOINT ["isso"]
CMD ["--help"]