Skip to content

Instantly share code, notes, and snippets.

@justynroberts
Last active March 7, 2023 09:37
Show Gist options
  • Save justynroberts/a77aaa5d14faa4548eb78c815555a9ea to your computer and use it in GitHub Desktop.
Save justynroberts/a77aaa5d14faa4548eb78c815555a9ea to your computer and use it in GitHub Desktop.
Automation Runner in Docker
# PagerDuty Automation Runner 2023
FROM openjdk:11-jre-slim
WORKDIR /
COPY runner.jar runner.jar
# Add Tini for initialisation
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
# Run your program under Tini
CMD ["java", "-jar", "./runner.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment