Instead of using a full image name, use the repo and version to build the image to pull from. Removes building of the frontend for multiple platforms

This commit is contained in:
Trenton Holmes
2022-04-21 15:47:50 -07:00
committed by Trenton Holmes
parent 51399fdd81
commit d79e05b735
4 changed files with 67 additions and 63 deletions

View File

@@ -1,11 +1,15 @@
# This Dockerfile builds the pikepdf wheel
# Inputs:
# - QPDF_BASE_IMAGE - The image to copy built qpdf .ded files from
# - REPO - Docker repository to pull qpdf from
# - QPDF_VERSION - The image qpdf version to copy .deb files from
# - GIT_TAG - The Git tag to clone and build from
# - VERSION - Used to force the built pikepdf version to match
ARG QPDF_BASE_IMAGE
FROM ${QPDF_BASE_IMAGE} as qpdf-builder
# Default to pulling from the main repo registry when manually building
ARG REPO="paperless-ngx/paperless-ngx"
ARG QPDF_VERSION
FROM ghcr.io/${REPO}/builder/qpdf:${QPDF_VERSION} as qpdf-builder
# This does nothing, except provide a name for a copy below