ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:2fc6364d149eccc7f94ead482a0dcf24b0e44cc0d00ac6a2c1797776153e9608 in / |
CMD ["/bin/bash"] |
COPY /usr/local/src/repositories/*.deb /tmp/ # buildkit |
ARG freerad_uid=101 |
ARG freerad_gid=101 |
ARG DEBIAN_FRONTEND=noninteractive |
RUN |3 freerad_uid=101 freerad_gid=101 DEBIAN_FRONTEND=noninteractive /bin/sh -c groupadd -g ${freerad_gid} -r freerad && useradd -u ${freerad_uid} -g freerad -r -M -d /etc/freeradius -s /usr/sbin/nologin freerad && apt-get update && apt-get install -y /tmp/*.deb && apt-get clean && rm -r /var/lib/apt/lists/* /tmp/*.deb && ln -s /etc/freeradius /etc/raddb # buildkit |
COPY docker-entrypoint.sh / # buildkit |
RUN |3 freerad_uid=101 freerad_gid=101 DEBIAN_FRONTEND=noninteractive /bin/sh -c chmod +x /docker-entrypoint.sh # buildkit |
EXPOSE map[1812/udp:{} 1813/udp:{}] |
ENTRYPOINT ["/docker-entrypoint.sh"] |
CMD ["freeradius"] |
/bin/sh -c ln -s /etc/raddb/mods-available/ldap /etc/raddb/mods-enabled/ldap |
/bin/sh -c ln -s /etc/raddb/mods-available/smbpasswd /etc/raddb/mods-enabled/smbpasswd |