herald.go/docker/Dockerfile

11 lines
208 B
Text
Raw Normal View History

FROM golang:alpine as stage1
EXPOSE 50051
RUN mkdir /app
WORKDIR /app
COPY . /app
2022-08-06 07:43:19 +02:00
RUN go build -o herald .
FROM alpine:latest
2022-08-06 07:43:19 +02:00
COPY --from=stage1 /app/herald /herald
ENTRYPOINT ["/herald", "serve"]