From 8bdb64e745818207da0ab6fc32a4185c2358e2aa Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 7 Apr 2022 14:57:53 +0200 Subject: [PATCH] build gatsby as a part of docker build process --- packages/dashboard-v2/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/dashboard-v2/Dockerfile b/packages/dashboard-v2/Dockerfile index 4c834e0c..9fb4c604 100644 --- a/packages/dashboard-v2/Dockerfile +++ b/packages/dashboard-v2/Dockerfile @@ -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"]