feat: update build

This commit is contained in:
Georg K
2025-06-24 17:49:39 +03:00
parent 2338f97df6
commit b2aaec33d9
7 changed files with 36 additions and 14 deletions

View File

@@ -20,11 +20,11 @@ RUN cp hosted/config/radiusd.conf $out_dir/radiusd.conf && \
rm -f /etc/freeradius/mods-enabled/eap \
RUN rm -f /etc/freeradius/mods-enabled/delay && \
ln -s $out_dir/mods-available/delay $out_dir/mods-enabled/delay
ADD entrypoint.sh /bin/entrypoint.sh
RUN chmod a+x /bin/entrypoint.sh && chmod -R 750 $out_dir && chown -R freerad:root $out_dir && \
ADD entrypoint.sh /usr/bin/entrypoint.sh
RUN chmod a+x /usr/bin/entrypoint.sh && chmod -R 750 $out_dir && chown -R freerad:root $out_dir && \
mv /etc/freeradius/certs /tmp && \
rm -rf /tmp/hosted
WORKDIR /etc/freeradius
ENTRYPOINT ["entrypoint.sh"]
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
CMD ["freeradius", "-f"]