mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-14 13:27:21 +00:00
Refactor to server entry; update versions in Dockerfile
This commit is contained in:
parent
3b20013d10
commit
2cbab516f9
2 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue