Skip to content

Commit

Permalink
docker: client development configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Mar 3, 2024
1 parent 53121c8 commit 8eb9c51
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.yarn
node_modules
.pnp.*
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions client/docker/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
26 changes: 26 additions & 0 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8eb9c51

Please sign in to comment.