Created
February 26, 2020 09:27
-
-
Save Keloran/2fb454216e730e8ef2d7c5dd251b0f42 to your computer and use it in GitHub Desktop.
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 alpine | |
ARG serviceName | |
RUN apk update | |
RUN apk upgrade | |
RUN apk add ca-certificates && update-ca-certificates | |
RUN apk add --update tzdata | |
RUN apk add curl | |
RUN rm -rf /var/cache/apk/* | |
# Set TimeZone | |
ENV TZ=Europe/London | |
# Entrypoint | |
WORKDIR /home | |
# EntryPoint | |
ENTRYPOINT ["./exampleService"] | |
# healthcheck | |
HEALTHCHECK --interval=5s --timeout=2s --retries=12 CMD curl --silent --fail localhost/probe || exit 1 | |
# Expose Port | |
EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment