forked from jan/cacert-devsetup
21 lines
361 B
Docker
21 lines
361 B
Docker
|
FROM golang:alpine AS builder
|
||
|
|
||
|
COPY cacert-gosigner /src/
|
||
|
|
||
|
RUN set -ex ; \
|
||
|
cd /src/signer ; \
|
||
|
go build .
|
||
|
|
||
|
FROM alpine/socat:latest
|
||
|
|
||
|
COPY --from=builder /src/signer/signer /app/
|
||
|
|
||
|
COPY docker/run-gosigner usr/local/bin/
|
||
|
COPY docker/signer-config/* /srv/caconfig/
|
||
|
COPY testca /srv/testca/
|
||
|
|
||
|
VOLUME /srv/ca
|
||
|
|
||
|
ENTRYPOINT []
|
||
|
CMD ["/usr/local/bin/run-gosigner"]
|