Beep backend handling user permissions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
313 B

3 years ago
  1. FROM golang:1.12-rc-alpine as build
  2. RUN apk add --no-cache git=2.20.1-r0
  3. WORKDIR /src
  4. COPY go.mod go.sum .env *.go ./
  5. RUN go get -d -v ./...
  6. RUN CGO_ENABLED=0 go build -ldflags "-s -w"
  7. FROM scratch
  8. COPY --from=build /src/permissions /permissions
  9. COPY --from=build /src/.env /.env
  10. ENTRYPOINT ["/permissions"]