Skip to content

Commit 229018d

Browse files
committed
Properly load install_env for postgres
1 parent 49781a6 commit 229018d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

build-images/ruby-postgres.Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
FROM ghcr.io/code0-tech/build-images/mise:131.1
22

3-
RUN apt-get update && apt-get install \
4-
build-essential \
5-
libssl-dev \
6-
libreadline-dev \
7-
zlib1g-dev \
8-
libcurl4-openssl-dev \
9-
uuid-dev \
10-
icu-devtools \
11-
libicu-dev \
12-
libyaml-dev \
13-
-y
3+
RUN apt-get update \
4+
&& apt-get install \
5+
build-essential \
6+
libssl-dev \
7+
libreadline-dev \
8+
zlib1g-dev \
9+
libcurl4-openssl-dev \
10+
uuid-dev \
11+
icu-devtools \
12+
libicu-dev \
13+
libyaml-dev \
14+
-y \
15+
&& rm -rf /var/lib/apt/lists/* \
16+
&& apt-get clean
1417

1518
ARG POSTGRES_VERSION
1619
ARG RUBY_VERSION
17-
ADD build-images/mise/mise.ruby-postgres.toml ./mise.toml
18-
RUN mise trust && \
19-
mise config set tools.postgres.version $POSTGRES_VERSION -t string && \
20-
mise config set tools.ruby.version $RUBY_VERSION -t string && \
21-
mise install && \
22-
rm mise.toml
20+
RUN echo "POSTGRES_SKIP_INITDB=true" > .install-env \
21+
&& MISE_ENV_FILE=.install-env mise use -g postgres@$POSTGRESQL_VERSION ruby@$RUBY_VERSION \
22+
&& rm .install-env

0 commit comments

Comments
 (0)