Skip to content

Commit

Permalink
hot reload server
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 8eb9c51 commit 6465b1c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ services:
vertex:
build:
context: ../server
dockerfile: docker/bundle.Dockerfile
args:
- APP_KIND=main
dockerfile: docker/bundle.dev.Dockerfile
environment:
- APP_KIND=main
volumes:
- ../server:/build/server

vertex-kernel:
build:
context: ../server
dockerfile: docker/bundle.Dockerfile
args:
- APP_KIND=kernel
dockerfile: docker/bundle.dev.Dockerfile
environment:
- APP_KIND=kernel
volumes:
- ../server:/build/server
15 changes: 15 additions & 0 deletions server/docker/bundle.dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build-stage

WORKDIR /build

COPY . .

RUN apk add --no-cache git

RUN go install -mod=mod github.com/githubnemo/CompileDaemon

ARG APP_KIND=main

EXPOSE 80 7500 7502 7504 7505 7506 7508 7510 7512 7514 7516 7518

ENTRYPOINT CompileDaemon -build='go build ./cmd/'"$APP_KIND" -directory=.

0 comments on commit 6465b1c

Please sign in to comment.