nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit a8ca64640c9f879127b47d6f0f05a7f41a285f94
parent e8bc1828fbc0fe5990438ee3775f4b86d8aaa82d
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 25 Aug 2024 15:08:47 +0200

fix(myheats-nginx): configure env with args

Diffstat:
Mdocker/docker-myheats-nginx/Dockerfile | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/docker/docker-myheats-nginx/Dockerfile b/docker/docker-myheats-nginx/Dockerfile @@ -1,5 +1,6 @@ FROM docker.io/nginx:alpine +# Read args from build command ARG VITE_APP_DOC_TITLE='My Heats' ARG VITE_APP_SUPABASE_URL='' ARG VITE_APP_SUPABASE_KEY='changeme' @@ -9,6 +10,13 @@ ARG VITE_APP_EMAIL_REDIRECT_TO='' # we require `vite` command in `npm run build` below ARG NODE_ENV=dev +# Configure the env with the args +ENV VITE_APP_DOC_TITLE="$VITE_APP_DOC_TITLE" +ENV VITE_APP_SUPABASE_URL="$VITE_APP_SUPABASE_URL" +ENV VITE_APP_SUPABASE_KEY="$VITE_APP_SUPABASE_KEY" +ENV VITE_APP_EMAIL_REDIRECT_TO="$VITE_APP_EMAIL_REDIRECT_TO" +ENV NODE_ENV="$NODE_ENV" + RUN apk update RUN apk add --no-cache git npm