Skip to content

Commit cf3461c

Browse files
Update Dockerfile to accept the pg version as a build argument (#601)
Make it easier to build images with different versions of postgres client tools installed.
1 parent 7bc7a81 commit cf3461c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ RUN source ~/.cargo/env && \
2020

2121
FROM ubuntu:latest
2222
ENV RUST_LOG=info
23-
ENV PSQL_VERSION=18
23+
ARG PSQL_VERSION=18
24+
ENV PSQL_VERSION=${PSQL_VERSION}
2425
RUN apt update && \
2526
apt install -y curl ca-certificates ssl-cert && \
2627
update-ca-certificates

0 commit comments

Comments
 (0)