-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Compile tac_plus
FROM alpine:3.7 as build
MAINTAINER Carlos Sanz <[email protected]>
LABEL Name=tac_plus
LABEL Version=1.0.0
ARG SRC_VERSION=201712190728
ARG SRC_HASH=c7a8dbc5e6561a2fbc608142520a88e05fda22e9a664f3184ffe2f8b4821cf2c
ADD http://www.pro-bono-publico.de/projects/src/DEVEL.$SRC_VERSION.tar.bz2 /tac_plus.tar.bz2
RUN echo "${SRC_HASH} /tac_plus.tar.bz2" | sha256sum -c -
RUN apk update && \
apk add build-base bzip2 perl perl-digest-md5 perl-ldap && \
tar -xjf /tac_plus.tar.bz2 && \
cd /PROJECTS && \
./configure --prefix=/tacacs && \
make && \
make install && \
rm -fr tac_plus.tar.bz2
# Move to a clean, small image
FROM alpine:3.7
COPY --from=build /tacacs /tacacs
COPY tac_plus.cfg /etc/tac_plus/tac_plus.cfg
COPY docker-entrypoint.sh /docker-entrypoint.sh
EXPOSE 49
ENTRYPOINT ["/docker-entrypoint.sh"]