summaryrefslogtreecommitdiffstats
path: root/Dockerfile_x86-64
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile_x86-64')
-rw-r--r--Dockerfile_x86-6411
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile_x86-64 b/Dockerfile_x86-64
new file mode 100644
index 0000000..0a1902d
--- /dev/null
+++ b/Dockerfile_x86-64
@@ -0,0 +1,11 @@
+FROM centos:7
+ENV PATH $PATH:/usr/local/go/bin
+RUN yum install -y gcc git pam-devel \
+ && curl -o go1.10.3.linux-amd64.tar.gz https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz \
+ && tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz \
+ && go get github.com/msteinert/pam \
+ && go get github.com/nmcclain/asn1-ber \
+ && go get github.com/nmcclain/ldap
+COPY src /root/go/src
+RUN cd /root/go/src \
+ && go build -a pamldapd.go