build gatsby as a part of docker build process

This commit is contained in:
Karol Wypchlo 2022-04-07 14:57:53 +02:00
parent 7707a34564
commit 8bdb64e745
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 5 additions and 1 deletions

View File

@ -15,4 +15,8 @@ COPY packages/dashboard-v2/gatsby*.js \
packages/dashboard-v2/tailwind.config.js \
./
CMD ["sh", "-c", "yarn build && yarn serve --host 0.0.0.0 -p 9000"]
RUN yarn build
EXPOSE 9000
CMD ["sh", "-c", "yarn serve --host 0.0.0.0 -p 9000"]