mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-13 21:07:22 +00:00
Implemented encryption functionality of spc and password generation; refactors on spc and server
This commit is contained in:
parent
c289eecd54
commit
cd24f6e848
26 changed files with 1151 additions and 1522 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -1,22 +1,11 @@
|
|||
FROM golang:1.11.5 as build
|
||||
WORKDIR /go/src/github.com/mitchell/selfpass
|
||||
COPY . .
|
||||
RUN go get -u golang.org/x/tools/cmd/goimports
|
||||
ENV GO111MODULE=on
|
||||
RUN make build
|
||||
|
||||
FROM debian:stable-20190326-slim
|
||||
RUN printf "deb http://httpredir.debian.org/debian stretch-backports main non-free\ndeb-src http://httpredir.debian.org/debian stretch-backports main non-free" > /etc/apt/sources.list.d/backports.list
|
||||
RUN apt-get update && apt-get install -t stretch-backports -y --no-install-recommends redis-server=5:5.0.3-3~bpo9+2 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /usr/bin/selfpass/
|
||||
WORKDIR /usr/bin
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/bin/server .
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/redis.conf .
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/db/dump.rdb ./db/dump.rdb
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/certs/ca.pem ./certs/ca.pem
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/certs/server.pem ./certs/server.pem
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/certs/server-key.pem ./certs/server-key.pem
|
||||
COPY --from=build /go/src/github.com/mitchell/selfpass/dual-entry ./dual-entry
|
||||
ENTRYPOINT ./dual-entry
|
||||
ENTRYPOINT ["server"]
|
||||
EXPOSE 8080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue