Skip to content

Instantly share code, notes, and snippets.

@tklee1975
Created March 23, 2022 15:46
Show Gist options
  • Save tklee1975/56047327525667916a9ddfa09ebf09f3 to your computer and use it in GitHub Desktop.
Save tklee1975/56047327525667916a9ddfa09ebf09f3 to your computer and use it in GitHub Desktop.
A very very simple Dockerfile
# 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"]
# 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