move build to cmd

This commit is contained in:
Karol Wypchlo 2021-02-20 15:57:55 +01:00
parent 3df10f4370
commit 0b70328876
1 changed files with 2 additions and 2 deletions

View File

@ -10,5 +10,5 @@ COPY postcss.config.js .
COPY tailwind.config.js .
ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn --no-lockfile && yarn build
CMD ["yarn", "start"]
RUN yarn --no-lockfile
CMD ["sh", "-c", "yarn build", ";", "yarn start"]