summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2018-06-13 13:07:19 +0200
committerMarkus Krogh <markus@nordu.net>2018-06-13 13:07:19 +0200
commitae269bdcb49b295cf589c4a37246acace261f7fe (patch)
tree1da9c41a30a0bdf558f1d699194983b43a6770aa /Dockerfile
parent58a7662e577c8a914e580b175320ccf4f6137a18 (diff)
Tidy up Dockerfile + flags
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 8 insertions, 4 deletions
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"]