summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2019-02-07 11:11:53 +0100
committerMarkus Krogh <markus@nordu.net>2019-02-07 11:11:53 +0100
commit7f437db53b49339615bbad9813e8beee522de493 (patch)
tree41fc0b15ea5d91141620d30ec8194845b23da3ab /Dockerfile
parent51d49d000e012a99726057998dfb9fcc6c3e743c (diff)
Use kinit and kadmin directly rather than perl script
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 6 insertions, 7 deletions
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