Skip to content

Commit

Permalink
Create Dockerfile for Vertex
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Sep 24, 2023
1 parent 14be6f7 commit d75f795
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:1.20-alpine AS build-stage

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . ./

RUN go build -o /vertex

FROM build-stage AS test-stage
RUN go test -v ./...

FROM alpine AS run-stage

WORKDIR /

COPY --from=build-stage /vertex /vertex

EXPOSE 6130

CMD /vertex

0 comments on commit d75f795

Please sign in to comment.