ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:262490f82459c14632f5c9a6d6a5cf6c07b4f307e8fd380fa764662cda46e88f 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"] |