parameterize DYNSIZE in dockerfiles

This commit is contained in:
Brendan Ball 2021-02-25 08:16:55 +02:00 committed by Christoph Berg
parent 85f2d3e55b
commit 4114daf190
2 changed files with 6 additions and 2 deletions

View File

@ -24,9 +24,11 @@ FROM debian:stable-slim as builder
COPY ./ /opt/src/pgloader
ARG DYNSIZE=4096
RUN mkdir -p /opt/src/pgloader/build/bin \
&& cd /opt/src/pgloader \
&& make clones save
&& make DYNSIZE=$DYNSIZE clones save
FROM debian:stable-slim

View File

@ -27,9 +27,11 @@ FROM debian:stable-slim as builder
COPY ./ /opt/src/pgloader
ARG DYNSIZE=256
RUN mkdir -p /opt/src/pgloader/build/bin \
&& cd /opt/src/pgloader \
&& make CL=ccl DYNSIZE=256 clones save
&& make CL=ccl DYNSIZE=$DYNSIZE clones save
FROM debian:stable-slim