Refactor to server entry; update versions in Dockerfile

This commit is contained in:
Mitchell Simon 2019-08-26 01:51:46 -04:00
parent 3b20013d10
commit 2cbab516f9
2 changed files with 9 additions and 7 deletions

View file

@ -1,10 +1,10 @@
FROM golang:1.11.5 as build
FROM golang:1.12 as build
WORKDIR /go/src/github.com/mitchell/selfpass/services
COPY . .
ENV GO111MODULE on
RUN make build
FROM debian:stable-20190506-slim
FROM debian:stable-20190812-slim
COPY --from=build /go/src/github.com/mitchell/selfpass/services/bin/server /usr/bin/server
RUN groupadd -r selfpass && useradd --no-log-init -r -g selfpass selfpass
USER selfpass