Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
ARG PG_MAJOR=17
ARG PREV_PG_MAJOR=15
ARG TIMESCALE_VERSION=2.22

# Stage 1: Get PostgreSQL ${PREV_PG_MAJOR} binaries for upgrade support
FROM timescale/timescaledb-ha:pg${PG_MAJOR}-ts${TIMESCALE_VERSION}-all AS pg-all
FROM timescale/timescaledb-ha:pg${PG_MAJOR}-all AS pg-all

USER root

Expand All @@ -18,7 +17,7 @@ RUN find /usr/lib/postgresql/${PREV_PG_MAJOR} -type f -name '*.so*' -exec strip
/usr/share/postgresql/${PREV_PG_MAJOR}/contrib

# Stage 2: Prepare the main image with UID/GID changes and cleanup
FROM timescale/timescaledb-ha:pg${PG_MAJOR}-ts${TIMESCALE_VERSION} AS final
FROM timescale/timescaledb-ha:pg${PG_MAJOR} AS final
LABEL maintainer="support@openremote.io"

USER root
Expand Down