Skip to content

Commit c71132e

Browse files
fix: add args for builds
1 parent 71d4900 commit c71132e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

image/base/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RUN gpg --import /tmp/nginx_public_keys.key &&\
3434
FROM discourse/ruby:${RUBY_VERSION}-${DEBIAN_RELEASE}-slim AS discourse_dependencies
3535

3636
ARG DEBIAN_RELEASE
37+
ARG PG_MAJOR
3738
ENV PG_MAJOR=${PG_MAJOR} \
3839
RUBY_ALLOCATOR=/usr/lib/libjemalloc.so \
3940
LEFTHOOK=0 \
@@ -181,6 +182,7 @@ RUN cd /var/www/discourse &&\
181182
sudo -u discourse /bin/bash -c 'if [ -f yarn.lock ]; then yarn install --frozen-lockfile && yarn cache clean; else pnpm install --frozen-lockfile; fi'
182183

183184
FROM discourse_web_only AS discourse_release
185+
ARG PG_MAJOR
184186
RUN --mount=type=tmpfs,target=/var/log \
185187
postgresql-${PG_MAJOR} postgresql-contrib-${PG_MAJOR} postgresql-${PG_MAJOR}-pgvector \
186188
RUN /tmp/install-redis

image/discourse_dev/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ USER discourse
1010
RUN git clone https://github.com/discourse/discourse . --depth 1
1111

1212
FROM discourse/base:$from_tag
13+
ARG PG_MAJOR=15
1314

1415
#LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\""
1516

0 commit comments

Comments
 (0)