Refactor Dockerfile comments for clarity and consistency
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Failing after 1m30s

This commit is contained in:
Tygozwolle
2026-07-24 12:44:51 +02:00
parent 3388138bb0
commit c952c6a55e
+8 -2
View File
@@ -1,6 +1,6 @@
FROM freeradius/freeradius-server:latest
# Install dependencies for building PostgreSQL module
# Build dependencies
RUN apt-get update && \
apt-get install -y \
git \
@@ -12,10 +12,16 @@ RUN apt-get update && \
libtool && \
rm -rf /var/lib/apt/lists/*
# Build FreeRADIUS with PostgreSQL support
# Build PostgreSQL module
RUN cd /tmp && \
git clone --depth 1 https://github.com/FreeRADIUS/freeradius-server.git && \
cd freeradius-server && \
./configure --with-rlm-sql-postgresql && \
make && \
make install
# Runtime: point FreeRADIUS to the compiled module directory
RUN ln -s /usr/local/lib/freeradius /usr/lib/freeradius
# Runtime: use the compiled config directory
RUN rm -rf /etc/freeradius && ln -s /usr/local/etc/raddb /etc/freeradius