17 lines
166 B
Docker
17 lines
166 B
Docker
FROM golang:1-alpine as builder
|
|
|
|
WORKDIR /build
|
|
|
|
COPY . .
|
|
|
|
RUN go build -o app
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /build/app .
|
|
|
|
CMD ["/app/app"]
|