Allow configuring base image for the single image Docker build.

This commit is contained in:
Sam Rose 2024-05-28 13:51:41 +01:00
parent 4a0cca5aed
commit 13c1e0c855
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
ARG BASEIMG=budibase/couchdb:v3.3.3
FROM node:20-slim as build
# install node-gyp dependencies
@ -32,7 +33,7 @@ COPY packages/worker/dist packages/worker/dist
COPY packages/worker/pm2.config.js packages/worker/pm2.config.js
FROM budibase/couchdb:v3.3.3 as runner
FROM $BASEIMG as runner
ARG TARGETARCH
ENV TARGETARCH $TARGETARCH
#TARGETBUILD can be set to single (for single docker image) or aas (for azure app service)