Example DCli app in Docker
FROM google/dart as build
RUN mkdir /src
WORKDIR /src
RUN git clone https://github.com/noojee/batman.git
# remove the git clone and uncomment this lines for local dev.
# COPY batman /src/batman
WORKDIR /src/batman
RUN dart pub get
RUN dart compile exe /src/batman/bin/batman.dart -o /batman
# Build minimal image from AOT-compiled `/batman`
FROM build
COPY --from=build /batman /batman
WORKDIR /
RUN /batman install
# Run a base line and schedule scans.
ENTRYPOINT ["/batman", "--quiet", "--no-colour", "cron", "--baseline", "30 22 * * * *"]
# remove the ENTRYPOINT and uncomment this line to enable interactive debugging.
# CMD ["bash"]Publish your docker image
Last updated
Was this helpful?