mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-14 13:27:21 +00:00
Move service related filed to services folder
This commit is contained in:
parent
347fbe7268
commit
7d770ef150
41 changed files with 50 additions and 50 deletions
13
services/Dockerfile
Normal file
13
services/Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
FROM golang:1.11.5 as build
|
||||
WORKDIR /go/src/github.com/mitchell/selfpass/services
|
||||
COPY . .
|
||||
ENV GO111MODULE on
|
||||
RUN make build
|
||||
|
||||
FROM debian:stable-20190506-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
|
||||
WORKDIR /home/selfpass
|
||||
ENTRYPOINT ["server"]
|
||||
EXPOSE 8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue