Refactor Dockerfile to use apt-get for installing PostgreSQL dependencies and improve build process
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Failing after 1m28s
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Failing after 1m28s
This commit is contained in:
+19
-7
@@ -1,9 +1,21 @@
|
||||
FROM freeradius/freeradius-server:latest
|
||||
|
||||
RUN apk add postgresql-dev build-base \
|
||||
&& cd /tmp \
|
||||
&& git clone --depth 1 https://github.com/FreeRADIUS/freeradius-server.git \
|
||||
&& cd freeradius-server \
|
||||
&& ./configure --with-rlm-sql-postgresql \
|
||||
&& make \
|
||||
&& make install
|
||||
# Install dependencies for building PostgreSQL module
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
build-essential \
|
||||
libpq-dev \
|
||||
pkg-config \
|
||||
autoconf \
|
||||
automake \
|
||||
libtool && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Build FreeRADIUS with PostgreSQL support
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user