Skip to content

Commit 1d6230d

Browse files
committed
chore(database): change env to build arg
1 parent e0f6ecd commit 1d6230d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ FROM registry.drycc.cc/drycc/base:${CODENAME}
33

44
COPY rootfs/usr /usr/
55
COPY rootfs/entrypoint.sh /entrypoint.sh
6-
ENV PG_MAJOR=17 \
7-
PG_MINOR=6 \
8-
PYTHON_VERSION="3.13" \
6+
7+
8+
ARG PYTHON_VERSION="3.13" \
99
POSTGRES_EXPORTER_VERSION="0.17.1"
1010

11-
ENV HOME /data
11+
ENV HOME /data \
12+
PG_MAJOR=17 \
13+
PG_MINOR=6
1214
ENV PGDATA $HOME/$PG_MAJOR
1315

1416
RUN install-packages vim gcc \

0 commit comments

Comments
 (0)