10 lines
136 B
Docker
10 lines
136 B
Docker
FROM golang:1.16 as build
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN go build .
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=build /app/db /app
|
|
ENTRYPOINT [ "/app/db" ] |