Use buster-slim for go signer and smtp
This commit is contained in:
parent
8fca612a7d
commit
7e09af008e
2 changed files with 15 additions and 5 deletions
|
@ -3,12 +3,22 @@ FROM golang:alpine AS builder
|
||||||
COPY cacert-gosigner /src/
|
COPY cacert-gosigner /src/
|
||||||
|
|
||||||
RUN set -ex ; \
|
RUN set -ex ; \
|
||||||
cd /src/signer ; \
|
cd /src/cmd/signer ; \
|
||||||
go build .
|
CGO_ENABLED=0 go build .
|
||||||
|
|
||||||
FROM alpine/socat:latest
|
# need to use Debian because we need xdelta 1.x to support signer protocol
|
||||||
|
# version 1
|
||||||
|
FROM debian:buster-slim
|
||||||
|
|
||||||
COPY --from=builder /src/signer/signer /app/
|
RUN apt-get update \
|
||||||
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
socat \
|
||||||
|
xdelta \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY --from=builder /src/cmd/signer/signer /app/
|
||||||
|
|
||||||
COPY docker/run-gosigner usr/local/bin/
|
COPY docker/run-gosigner usr/local/bin/
|
||||||
COPY docker/signer-config/* /srv/caconfig/
|
COPY docker/signer-config/* /srv/caconfig/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:buster
|
FROM debian:buster-slim
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
|
|
Loading…
Reference in a new issue