fix dockerfile

This commit is contained in:
karamvir
2023-07-25 00:42:36 -07:00
parent 88198f7696
commit b67cb3bd9e
3 changed files with 12 additions and 6 deletions

View File

@@ -2,4 +2,7 @@
readme.md
typeshare.toml
LICENSE
*.code-workspace
*.code-workspace
*/node_modules
*/dist

View File

@@ -1,2 +0,0 @@
node_modules
dist

View File

@@ -1,6 +1,11 @@
FROM node:alpine
COPY . .
RUN yarn && yarn build
WORKDIR /app
CMD yarn preview --host
COPY ./frontend ./frontend
COPY ./client/ts ./client
RUN cd client && yarn && yarn build && yarn link
RUN cd frontend && yarn link @monitor/client && yarn && yarn build
CMD cd frontend && yarn preview --host