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
404 B

# build stage
FROM golang:1.12-alpine3.9 AS build-env
RUN apk --no-cache add git
WORKDIR /go/src/p83.nl/go/track-me
ADD . /go/src/p83.nl/go/track-me
RUN go get && go build
FROM alpine:3.9
RUN addgroup -S app && adduser -S -G app app
RUN apk add --update ca-certificates
WORKDIR /data
RUN ["chown", "app:app", "/data"]
COPY --from=build-env /go/bin/track-me /app/
USER app
ENTRYPOINT ["/app/track-me"]