Skip to content

Instantly share code, notes, and snippets.

@Keloran
Created February 26, 2020 09:27
Show Gist options
  • Save Keloran/2fb454216e730e8ef2d7c5dd251b0f42 to your computer and use it in GitHub Desktop.
Save Keloran/2fb454216e730e8ef2d7c5dd251b0f42 to your computer and use it in GitHub Desktop.
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