summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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