From bdc0c6053cc16a49861303321812143ac20c755c Mon Sep 17 00:00:00 2001 From: realies <5107843+realies@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:51:55 +0000 Subject: [PATCH] fix(env-vars): rebuild on start --- app.dockerfile | 3 ++- ui/start.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ui/start.sh diff --git a/app.dockerfile b/app.dockerfile index 488e64b..7864b06 100644 --- a/app.dockerfile +++ b/app.dockerfile @@ -11,5 +11,6 @@ COPY ui /home/perplexica/ RUN yarn install --frozen-lockfile RUN yarn build +RUN chmod +x start.sh -CMD ["yarn", "start"] \ No newline at end of file +CMD ["./start.sh"] diff --git a/ui/start.sh b/ui/start.sh new file mode 100644 index 0000000..fc902d4 --- /dev/null +++ b/ui/start.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +echo "Building with current environment variables..." +yarn build + +exec yarn start