From 9dacb5849b126b69ae5006a39205719dd6e79a35 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 20 Oct 2023 17:19:44 +0200 Subject: [PATCH] Add versions to server/worker docker v2 --- packages/server/Dockerfile.v2 | 4 ++++ packages/worker/Dockerfile.v2 | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/server/Dockerfile.v2 b/packages/server/Dockerfile.v2 index d5a86b037d..339cefcc45 100644 --- a/packages/server/Dockerfile.v2 +++ b/packages/server/Dockerfile.v2 @@ -67,6 +67,10 @@ COPY packages/server/docker_run.sh . COPY packages/server/builder/ builder/ COPY packages/server/client/ client/ +ARG VERSION +RUN test -n "$VERSION" +ENV VERSION=$VERSION + EXPOSE 4001 # have to add node environment production after install diff --git a/packages/worker/Dockerfile.v2 b/packages/worker/Dockerfile.v2 index 0d60db6fc5..20fcd4a69b 100644 --- a/packages/worker/Dockerfile.v2 +++ b/packages/worker/Dockerfile.v2 @@ -50,4 +50,8 @@ ENV POSTHOG_TOKEN=phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU ENV TENANT_FEATURE_FLAGS=*:LICENSING,*:USER_GROUPS,*:ONBOARDING_TOUR ENV ACCOUNT_PORTAL_URL=https://account.budibase.app +ARG VERSION +RUN test -n "$VERSION" +ENV VERSION=$VERSION + CMD ["./docker_run.sh"]