fix(docker): update to current Dockerfile formatting standards (#16)
Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -1,20 +1,22 @@
|
|||||||
FROM alpine:3.23.3 as build
|
FROM alpine:3.23.3 AS webproc
|
||||||
|
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
||||||
|
ENV WEBPROCVERSION=0.4.0
|
||||||
|
ENV WEBPROCURL=https://github.com/jpillora/webproc/releases/download/v$WEBPROCVERSION/webproc_"$WEBPROCVERSION"_linux_amd64.gz
|
||||||
|
RUN apk add --no-cache curl=8.17.0-r1 && \
|
||||||
|
curl -sL $WEBPROCURL | gzip -d - > /usr/local/bin/webproc && \
|
||||||
|
chmod +x /usr/local/bin/webproc
|
||||||
|
|
||||||
|
FROM alpine:3.23.3
|
||||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
LABEL org.opencontainers.image.source="https://git.tainton.uk/repos/docker-radius"
|
LABEL org.opencontainers.image.source="https://git.tainton.uk/repos/docker-radius"
|
||||||
|
LABEL org.opencontainers.image.description="FreeRADIUS server with web administration interface"
|
||||||
FROM build as webproc
|
LABEL org.opencontainers.image.title="docker-radius"
|
||||||
ENV WEBPROCVERSION 0.4.0
|
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
||||||
ENV WEBPROCURL https://github.com/jpillora/webproc/releases/download/v$WEBPROCVERSION/webproc_"$WEBPROCVERSION"_linux_amd64.gz
|
RUN apk --no-cache add freeradius=3.0.27-r2
|
||||||
RUN apk add --no-cache curl
|
|
||||||
RUN curl -sL $WEBPROCURL | gzip -d - > /usr/local/bin/webproc
|
|
||||||
RUN chmod +x /usr/local/bin/webproc
|
|
||||||
|
|
||||||
FROM build as radius
|
|
||||||
RUN apk --no-cache add freeradius
|
|
||||||
COPY --from=webproc /usr/local/bin/webproc /usr/local/bin/webproc
|
COPY --from=webproc /usr/local/bin/webproc /usr/local/bin/webproc
|
||||||
ADD clients.conf /etc/raddb/clients.conf
|
COPY clients.conf /etc/raddb/clients.conf
|
||||||
ADD users /etc/raddb/users
|
COPY users /etc/raddb/users
|
||||||
ADD radiusd.conf /etc/raddb/radiusd.conf
|
COPY radiusd.conf /etc/raddb/radiusd.conf
|
||||||
RUN chmod -R o-w /etc/raddb/
|
RUN chmod -R o-w /etc/raddb/
|
||||||
ENTRYPOINT ["webproc","-o","restart","-c","/etc/raddb/users","-c", "/etc/raddb/clients.conf", "-c", "/etc/raddb/radiusd.conf","--","radiusd","-f","-l","stdout"]
|
ENTRYPOINT ["webproc","-o","restart","-c","/etc/raddb/users","-c", "/etc/raddb/clients.conf", "-c", "/etc/raddb/radiusd.conf","--","radiusd","-f","-l","stdout"]
|
||||||
EXPOSE 1812/udp 1813/udp 8080/tcp
|
EXPOSE 1812/udp 1813/udp 8080/tcp
|
||||||
|
|||||||
Reference in New Issue
Block a user