fix(env-vars): rebuild on start
This commit is contained in:
parent
409c811a42
commit
bdc0c6053c
2 changed files with 8 additions and 1 deletions
|
@ -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
6
ui/start.sh
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Building with current environment variables..."
|
||||||
|
yarn build
|
||||||
|
|
||||||
|
exec yarn start
|
Loading…
Add table
Reference in a new issue