jxstxn1 / dockerize

Apache License 2.0
8 stars 1 forks source link

Allow injecting docker --build-arg #94

Closed passsy closed 1 year ago

passsy commented 1 year ago

Usage:

await createDockerImage(
  //...
  buildArgs: ['--build-arg', 'SHIELD_PASSWORD=$password'],
);

This can then be used inside the docker file:

FROM dart:stable AS build

ARG SHIELD_PASSWORD

RUN dart compile exe \
  --define=SHIELD_PASSWORD=$SHIELD_PASSWORD \
  -o bin/server \
  bin/server.dart
jxstxn1 commented 1 year ago

Can you add this to the docs please :)