From 7f437db53b49339615bbad9813e8beee522de493 Mon Sep 17 00:00:00 2001 From: Markus Krogh Date: Thu, 7 Feb 2019 11:11:53 +0100 Subject: Use kinit and kadmin directly rather than perl script --- Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 26804f3..2261f57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,18 @@ FROM golang:1.11 as build WORKDIR /go/src/pwman -RUN go get -d -v gopkg.in/ldap.v2 github.com/gorilla/csrf gopkg.in/jcmturner/gokrb5.v5/client gopkg.in/jcmturner/gokrb5.v5/config github.com/namsral/flag +RUN go get -d -v gopkg.in/ldap.v2 github.com/gorilla/csrf github.com/namsral/flag 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 ubuntu:18.04 -RUN apt-get update && \ - apt-get install -y libheimdal-kadm5-perl ca-certificates +FROM alpine:3.9 +RUN apk --no-cache add ca-certificates heimdal +#FROM ubuntu:18.04 +#RUN apt-get update && \ +# apt-get install -y libheimdal-kadm5-perl ca-certificates WORKDIR /opt COPY --from=build /go/src/pwman/pwman /usr/local/bin/ COPY krb5.conf /etc/krb5.conf -COPY scripts scripts COPY static static COPY templates templates ENV KRB5_CONF=/etc/krb5.conf -- cgit v1.1