forked from github-starred/komodo
fix dockerfile
This commit is contained in:
@@ -2,4 +2,7 @@
|
|||||||
readme.md
|
readme.md
|
||||||
typeshare.toml
|
typeshare.toml
|
||||||
LICENSE
|
LICENSE
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
|
|
||||||
|
*/node_modules
|
||||||
|
*/dist
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
node_modules
|
|
||||||
dist
|
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
|
|
||||||
COPY . .
|
WORKDIR /app
|
||||||
RUN yarn && yarn build
|
|
||||||
|
|
||||||
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
|
||||||
Reference in New Issue
Block a user