fedilogue/restapi/Dockerfile

12 lines
215 B
Docker
Raw Normal View History

FROM golang:latest AS build
WORKDIR /build
COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN go build .
FROM alpine:latest
WORKDIR /app
COPY --from=build /build/restapi /app/restapi
ENTRYPOINT ["/app/restapi"]