From fd0ac0a66e6f2508ca7596c0ab67c168205ef057 Mon Sep 17 00:00:00 2001 From: Carl Wilson Date: Thu, 28 Nov 2019 16:05:46 +0000 Subject: [PATCH] FEAT - Jpylyzer app in docker container - lightweight docker container for jplyzer app. --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c1bb812 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.6-alpine as builder + +LABEL maintainer="carl.wilson@openpreservation.org" \ + org.openpreservation.vendor="Open Preservation Foundation" \ + version="0.1" + +RUN apk update && apk --no-cache --update-cache add gcc build-base git libxml2-dev libxslt-dev + +WORKDIR /src +RUN git clone https://github.com/openpreserve/jpylyzer.git +RUN mkdir /install && cd /src/jpylyzer && pip install -U pip && pip install --install-option="--prefix=/install" . + +FROM python:3.6-alpine + +RUN apk update && apk add --no-cache --update-cache libc6-compat libstdc++ bash + +COPY --from=builder /install /usr/local + +ENTRYPOINT ["jpylyzer"] +CMD ["-h"]