Skip to content

Instantly share code, notes, and snippets.

@venura9
Last active September 6, 2021 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venura9/9ec88a93d376b5fd99db526e5bf8e74c to your computer and use it in GitHub Desktop.
Save venura9/9ec88a93d376b5fd99db526e5bf8e74c to your computer and use it in GitHub Desktop.
Manage NSG GitHub Action Dockerfile
FROM mcr.microsoft.com/azure-cli:2.8.0
# Copies your code file from your action repository to the filesystem path `/` of the container.
COPY entrypoint.sh /entrypoint.sh
# Set the missing exec permission, just in case if you're on on a *nix.
RUN chmod +x ./entrypoint.sh
# Enable dig to find the runner's public IP
RUN apk update && apk add --no-cache bind-tools && rm -rf /var/cache/apk/*
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment