mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-13 21:07:22 +00:00
Refactored Docker and Make files; increased command context timeouts;
add dockerignore
This commit is contained in:
parent
db246df3d6
commit
b76d5dffa3
7 changed files with 34 additions and 15 deletions
|
|
@ -1,12 +1,13 @@
|
|||
FROM golang:1.11.5 as build
|
||||
WORKDIR /go/src/github.com/mitchell/selfpass
|
||||
COPY . .
|
||||
ENV GO111MODULE=on
|
||||
RUN make gen-certs-go
|
||||
ENV GO111MODULE on
|
||||
RUN make build
|
||||
|
||||
FROM debian:stable-20190506-slim
|
||||
WORKDIR /usr/bin
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/bin/server .
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/bin/server /usr/bin/server
|
||||
RUN groupadd -r selfpass && useradd --no-log-init -r -g selfpass selfpass
|
||||
USER selfpass
|
||||
WORKDIR /home/selfpass
|
||||
ENTRYPOINT ["server"]
|
||||
EXPOSE 8080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue