Dockerfile 225 Bytes
Newer Older
Syed Areeb Hussain's avatar
Syed Areeb Hussain committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM golang:1.18 as builder

WORKDIR /usr/app
COPY . .
# build the executable
RUN go build -o miniserver


FROM gcr.io/distroless/base

COPY --from=builder /usr/app/ /usr/app/
WORKDIR /usr/app
EXPOSE 80

CMD ["./miniserver"]