Created
March 23, 2022 15:46
-
-
Save tklee1975/56047327525667916a9ddfa09ebf09f3 to your computer and use it in GitHub Desktop.
A very very simple 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
# version 1 | |
# Base on alpine OS | |
FROM alpine:latest | |
# | |
WORKDIR /user/local/bin | |
# Make simple hello script | |
RUN echo "echo \"Hello Alpine\"" > ./hello.sh | |
RUN chmod u+x *.sh | |
# Run the hello script | |
ENTRYPOINT ["sh", "./hello.sh"] |
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
# Version 2 | |
# Base on alpine OS | |
FROM alpine:latest | |
# | |
WORKDIR /user/local/bin | |
# Make simple hello script | |
RUN echo "echo \"Hello Alpine `date` \"" > ./hello.sh | |
RUN chmod u+x *.sh | |
# Run the hello script | |
ENTRYPOINT ["sh", "./hello.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment