Last active
March 7, 2023 09:37
-
-
Save justynroberts/a77aaa5d14faa4548eb78c815555a9ea to your computer and use it in GitHub Desktop.
Automation Runner in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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