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