diff --git a/.dockerignore b/.dockerignore index 63f2cb93..020145cf 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ .yarn node_modules +.pnp.* \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..be533e5d --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +run: + docker-compose -f docker/docker-compose.yml -f docker/docker-compose.build.yml up --build + +run-release: + docker-compose -f docker/docker-compose.yml up + +run-dev: + docker-compose -f docker/docker-compose.yml -f docker/docker-compose.dev.yml up --build + +clean: + docker-compose -f docker/docker-compose.yml down --rmi all diff --git a/client/docker/dev.Dockerfile b/client/docker/dev.Dockerfile new file mode 100644 index 00000000..39e0dcb2 --- /dev/null +++ b/client/docker/dev.Dockerfile @@ -0,0 +1,12 @@ +FROM node:alpine3.19 + +WORKDIR /app + +COPY . . + +RUN corepack enable +RUN yarn install --frozen-lockfile + +EXPOSE 5173 + +CMD ["yarn", "workspace", "@vertex-center/client", "dev", "--host"] diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml new file mode 100644 index 00000000..b36ff398 --- /dev/null +++ b/docker/docker-compose.dev.yml @@ -0,0 +1,26 @@ +version: '3.8' + +services: + client: + build: + context: .. + dockerfile: client/docker/dev.Dockerfile + volumes: + - ../client:/app/client + - ../packages:/app/packages + ports: + - "5173:5173" + + vertex: + build: + context: ../server + dockerfile: docker/bundle.Dockerfile + args: + - APP_KIND=main + + vertex-kernel: + build: + context: ../server + dockerfile: docker/bundle.Dockerfile + args: + - APP_KIND=kernel