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

FROM golang:1.12-rc-alpine as build
RUN apk add --no-cache git=2.20.1-r0
WORKDIR /src
COPY go.mod go.sum .env *.go ./
RUN go get -d -v ./...
RUN CGO_ENABLED=0 go build -ldflags "-s -w"
FROM scratch
COPY --from=build /src/permissions /permissions
COPY --from=build /src/.env /.env
ENTRYPOINT ["/permissions"]