freeradius/Dockerfile
2022-04-26 15:54:25 -07:00

37 lines
1.2 KiB
Docker

FROM ghcr.io/linuxserver/baseimage-alpine:3.15
# set version label
ARG BUILD_DATE
ARG VERSION
ARG FREERADIUS_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="lordwelch"
# install packages
RUN \
apk add --no-cache --upgrade \
freeradius-python3 py3-paho-mqtt py3-netaddr && \
sed -i -e 's@/etc@/config@g' -e '/\suser =\|\sgroup =/s/^/#/g' -e 's@/var/log@/config/log/freeradius@g'\
/etc/raddb/radiusd.conf
##DO STUFF HERE
## END EACH LINE WITH && \
## EXCEPT THE LAST LINE OF THE BLOCK
# add local files
COPY root/ /
# ports and volumes
EXPOSE 1812/udp 1813/udp
VOLUME /config
## NOTES ##
## Delete files\folders not needed
## The User abc, should be running everything, give that permission in any case you need it.
## When creating init's Use 10's where posible, its to allow add stuff in between when needed. also, do not be afraid to split custom code into several little ones.
## user abc and folders /app /config /defaults are all created by baseimage
## the first available init script is 30<your script>
## you can comment the beginning of each new RUN block but you cannot comment between commands in each RUN block.