herald.go/docker/Dockerfile
2022-08-06 08:43:19 +03:00

10 lines
208 B
Docker

FROM golang:alpine as stage1
EXPOSE 50051
RUN mkdir /app
WORKDIR /app
COPY . /app
RUN go build -o herald .
FROM alpine:latest
COPY --from=stage1 /app/herald /herald
ENTRYPOINT ["/herald", "serve"]