GreetingsIF / Dockerfile
Dhruv Diddi
feat: consider go server
5ed7f7b
raw
history blame
178 Bytes
FROM golang:1.18 as builder
WORKDIR /workdir
COPY main.go .
RUN go build -o main main.go
FROM golang:1.18
WORKDIR /workdir
COPY --from=builder /workdir/main /main
CMD /main