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
|
FROM freeradius/freeradius-server:latest
|
||||||
|
|
||||||
# Install dependencies for building PostgreSQL module
|
# Build dependencies
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
git \
|
git \
|
||||||
@@ -12,10 +12,16 @@ RUN apt-get update && \
|
|||||||
libtool && \
|
libtool && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Build FreeRADIUS with PostgreSQL support
|
# Build PostgreSQL module
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
git clone --depth 1 https://github.com/FreeRADIUS/freeradius-server.git && \
|
git clone --depth 1 https://github.com/FreeRADIUS/freeradius-server.git && \
|
||||||
cd freeradius-server && \
|
cd freeradius-server && \
|
||||||
./configure --with-rlm-sql-postgresql && \
|
./configure --with-rlm-sql-postgresql && \
|
||||||
make && \
|
make && \
|
||||||
make install
|
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