summaryrefslogtreecommitdiffstats
path: root/Dockerfile_i386
blob: 101135a1f8a06062d6c7de39e23ad4617685082b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
FROM i386/centos:7
ENV PATH $PATH:/usr/local/go/bin
RUN linux32 sh -c 'yum install -y gcc git pam-devel \
 && curl -o go1.10.3.linux-386.tar.gz https://dl.google.com/go/go1.10.3.linux-386.tar.gz \
 && tar -C /usr/local -xzf go1.10.3.linux-386.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 linux32 sh -c 'cd /root/go/src \
 && env GOOS=linux GOARCH=386 go build -a -ldflags "-extldflags \"-Wl,--hash-style=both\"" -x pamldapd.go'