Skip to content

Commit

Permalink
chore(dockerfile): support build arguments (#5258)
Browse files Browse the repository at this point in the history
support build arguments(fix #5257) 

Example:

docker build -t aws-cdk --build-arg BUILD_ARGS='--skip-test' .
  • Loading branch information
pahud authored and Elad Ben-Israel committed Nov 30, 2019
1 parent 22688ce commit 1dcba75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM jsii/superchain

WORKDIR /app

ARG BUILD_ARGS

COPY . .

RUN ./build.sh && ./link-all.sh
RUN ./build.sh ${BUILD_ARGS} && ./link-all.sh

ENTRYPOINT ["/app/node_modules/.bin/cdk"]

0 comments on commit 1dcba75

Please sign in to comment.