File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,16 @@ RUN apt-get update && \
7777 && echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf \
7878 && sed -i "s/^port = .*/port = ${DB_PORT}/" /etc/postgresql/15/main/postgresql.conf \
7979 && npm install --global yarn --force \
80- && curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-amd64 \
80+ && if [ "$(uname -m)" = "x86_64" ]; then \
81+ curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-amd64; \
82+ elif [ "$(uname -m)" = "aarch64" ]; then \
83+ curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-arm64; \
84+ elif [ "$(uname -m)" = "arm64" ]; then \
85+ curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-arm64; \
86+ else \
87+ echo "Unsupported architecture: $(uname -m)" ; \
88+ exit 1; \
89+ fi \
8190 && chmod +x /usr/local/bin/dbmate \
8291 && mkdir -p /var/log/postgres \
8392 && touch /var/log/postgres/postgres.log \
You can’t perform that action at this time.
0 commit comments