mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
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:

committed by
Trenton Holmes

parent
6179ca5668
commit
d19015579c
23
Dockerfile
23
Dockerfile
@@ -1,16 +1,19 @@
|
||||
# Default to pulling from the main repo registry when manually building
|
||||
ARG REPO="paperless-ngx/paperless-ngx"
|
||||
|
||||
# These are all built previously in the pipeline
|
||||
# They provide either a .deb, .whl or whatever npm outputs
|
||||
ARG JBIG2ENC_BASE_IMAGE
|
||||
ARG QPDF_BASE_IMAGE
|
||||
ARG PIKEPDF_BASE_IMAGE
|
||||
ARG PSYCOPG2_BASE_IMAGE
|
||||
ARG FRONTEND_BASE_IMAGE
|
||||
ARG JBIG2ENC_VERSION
|
||||
ARG QPDF_VERSION
|
||||
ARG PIKEPDF_VERSION
|
||||
ARG PSYCOPG2_VERSION
|
||||
ARG FRONTEND_VERSION
|
||||
|
||||
FROM ${JBIG2ENC_BASE_IMAGE} AS jbig2enc-builder
|
||||
FROM ${QPDF_BASE_IMAGE} as qpdf-builder
|
||||
FROM ${PIKEPDF_BASE_IMAGE} as pikepdf-builder
|
||||
FROM ${PSYCOPG2_BASE_IMAGE} as psycopg2-builder
|
||||
FROM ${FRONTEND_BASE_IMAGE} as compile-frontend
|
||||
FROM ghcr.io/${REPO}/builder/jbig2enc:${JBIG2ENC_VERSION} as jbig2enc-builder
|
||||
FROM ghcr.io/${REPO}/builder/qpdf:${QPDF_VERSION} as qpdf-builder
|
||||
FROM ghcr.io/${REPO}/builder/pikepdf:${PIKEPDF_VERSION} as pikepdf-builder
|
||||
FROM ghcr.io/${REPO}/builder/psycopg2:${PSYCOPG2_VERSION} as psycopg2-builder
|
||||
FROM ghcr.io/${REPO}/builder/frontend:${FRONTEND_VERSION} as compile-frontend
|
||||
|
||||
FROM python:3.9-slim-bullseye as main-app
|
||||
|
||||
|
Reference in New Issue
Block a user