Refactor Dockerfile comments for clarity and consistency
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Failing after 1m30s
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Failing after 1m30s
This commit is contained in:
+8
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user