Updated alpine, webproc, label & added expose ports

This commit is contained in:
dchidell
2020-01-08 10:55:26 +00:00
committed by GitHub
parent 2a64507f61
commit c090506112

View File

@@ -1,11 +1,11 @@
FROM alpine:3.8 as build
MAINTAINER David Chidell (dchidell@cisco.com)
FROM alpine:3.11 as build
LABEL maintainer="David Chidell (dchidell@cisco.com)"
ENV VERSION=201712190728
ENV TAC_PLUS_BIN=/tacacs/sbin/tac_plus
FROM build as webproc
ENV WEBPROC_VERSION 0.2.2
ENV WEBPROC_URL https://github.com/jpillora/webproc/releases/download/$WEBPROC_VERSION/webproc_linux_amd64.gz
ENV WEBPROC_VERSION 0.3.0
ENV WEBPROC_URL https://github.com/jpillora/webproc/releases/download/v${WEBPROC_VERSION}/webproc_${WEBPROC_VERSION}_linux_amd64.gz
RUN apk add --no-cache curl
RUN curl -sL $WEBPROC_URL | gzip -d - > /usr/local/bin/webproc
RUN chmod +x /usr/local/bin/webproc
@@ -18,4 +18,5 @@ ADD clients.conf /etc/raddb/clients.conf
ADD users /etc/raddb/users
ADD radiusd.conf /etc/raddb/radiusd.conf
RUN chmod -R o-w /etc/raddb/
ENTRYPOINT ["webproc","--on-exit","restart","--config","/etc/raddb/users,/etc/raddb/clients.conf,etc/raddb/radiusd.conf","--","radiusd","-f","-l","stdout"]
ENTRYPOINT ["webproc","--on-exit","restart","-c","/etc/raddb/users,/etc/raddb/clients.conf,etc/raddb/radiusd.conf","--","radiusd","-f","-l","stdout"]
EXPOSE 1812/udp 8080