Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Apr 9, 2024
1 parent fc673c7 commit 47e95fa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ COPY . .

FROM base as production
RUN go build -o ./bin/akuko-temporal-go-tooling
WORKDIR /app/healthcheck
RUN go build -o ../bin/healthcheck
WORKDIR /app
ENTRYPOINT ["./bin/akuko-temporal-go-tooling"]

FROM base as dev
RUN go mod tidy
CMD ["go", "run", "main.go"]
RUN go build -o ./bin/akuko-temporal-go-tooling
WORKDIR /app/healthcheck
RUN go build -o ../bin/healthcheck
WORKDIR /app
ENTRYPOINT ["./bin/akuko-temporal-go-tooling"]

0 comments on commit 47e95fa

Please sign in to comment.