From ae269bdcb49b295cf589c4a37246acace261f7fe Mon Sep 17 00:00:00 2001 From: Markus Krogh Date: Wed, 13 Jun 2018 13:07:19 +0200 Subject: Tidy up Dockerfile + flags --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index d77956f..8660b07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,17 @@ COPY *.go ./ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o pwman . -FROM alpine:latest -RUN apk --no-cache add ca-certificates +#FROM alpine:latest +#RUN apk --no-cache add ca-certificates +FROM ubuntu:16.04 +RUN apt-get update && \ + apt-get install -y libheimdal-kadm5-perl WORKDIR /opt COPY --from=build /go/src/pwman/pwman /usr/local/bin/ -COPY create-kdc-principal.pl . -COPY krb5.conf . +COPY krb5.conf /etc/krb5.conf +COPY scripts scripts COPY static static COPY templates templates +ENV KRB5_CONF=/etc/krb5.conf CMD ["pwman"] -- cgit v1.1