Last active
September 6, 2021 02:56
-
-
Save venura9/9ec88a93d376b5fd99db526e5bf8e74c to your computer and use it in GitHub Desktop.
Manage NSG GitHub Action Dockerfile
This file contains hidden or 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
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