fix(env-vars): rebuild on start

This commit is contained in:
realies 2025-01-05 14:51:55 +00:00
parent 409c811a42
commit bdc0c6053c
2 changed files with 8 additions and 1 deletions

View file

@ -11,5 +11,6 @@ COPY ui /home/perplexica/
RUN yarn install --frozen-lockfile RUN yarn install --frozen-lockfile
RUN yarn build RUN yarn build
RUN chmod +x start.sh
CMD ["yarn", "start"] CMD ["./start.sh"]

6
ui/start.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
echo "Building with current environment variables..."
yarn build
exec yarn start