Skip to content

Commit a3b0673

Browse files
committed
Simplify image
1 parent a9f0b2d commit a3b0673

2 files changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Set up QEMU
20-
uses: docker/setup-qemu-action@v3
20+
uses: docker/setup-qemu-action@v4
2121

2222
- name: Set up Docker Buildx
23-
uses: docker/setup-buildx-action@v3
23+
uses: docker/setup-buildx-action@v4
2424

2525
- name: Login to DockerHub
26-
uses: docker/login-action@v3
26+
uses: docker/login-action@v4
2727
with:
2828
username: ${{ secrets.DOCKERHUB_USERNAME }}
2929
password: ${{ secrets.DOCKERHUB_TOKEN }}
3030

3131
- name: Docker meta
3232
id: meta
33-
uses: docker/metadata-action@v5
33+
uses: docker/metadata-action@v6
3434
with:
3535
images: |
3636
creowave/postgres
@@ -51,7 +51,7 @@ jobs:
5151
echo "timescaledb_version=$TIMESCALEDB_VERSION" >> $GITHUB_OUTPUT
5252
5353
- name: Build and push Docker image
54-
uses: docker/build-push-action@v5
54+
uses: docker/build-push-action@v7
5555
with:
5656
context: .
5757
file: ./Dockerfile

Dockerfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ RUN apk add --no-cache --virtual .postgis-fetch-deps \
2929
proj-dev \
3030
proj-util \
3131
sfcgal-dev \
32-
llvm-dev \
33-
clang \
3432
autoconf \
3533
automake \
3634
cunit-dev \
@@ -57,10 +55,6 @@ RUN apk add --no-cache --virtual .postgis-fetch-deps \
5755
protobuf-c \
5856
ca-certificates
5957

60-
# Symlink clang and llvm-lto to ensure compatibility with PostGIS build scripts
61-
RUN ln -s /usr/bin/clang /usr/bin/clang-19 \
62-
&& mkdir -p /usr/lib/llvm19/bin && ln -s /usr/bin/llvm-lto /usr/lib/llvm19/bin/llvm-lto
63-
6458
# Download, verify and extract PostGIS source code
6559
RUN wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS_VERSION}.tar.gz" \
6660
&& echo "${POSTGIS_SHA256} *postgis.tar.gz" | sha256sum -c - \
@@ -72,14 +66,13 @@ RUN wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS
7266
--strip-components 1 \
7367
&& rm postgis.tar.gz
7468

75-
# Build PostGIS - with Link Time Optimization (LTO) enabled
69+
# Build PostGIS
7670
RUN cd /usr/src/postgis \
7771
&& gettextize \
7872
&& ./autogen.sh \
7973
&& ./configure \
80-
--enable-lto \
8174
&& make -j$(nproc) \
82-
&& make install
75+
&& make install
8376

8477
# Cleanup
8578
RUN rm -rf /usr/src/postgis \

0 commit comments

Comments
 (0)