You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
498 B

FROM alpine
LABEL maintainer="Max Schmitt <max@schmitt.mx>"
LABEL readme.md="https://github.com/mxschmitt/golang-url-shortener/blob/master/README.md"
LABEL description="This Dockerfile will install the Golang URL Shortener."
RUN apk update && apk add ca-certificates curl
EXPOSE 8080
COPY docker_releases/golang-url-shortener_linux_amd64/golang-url-shortener /
VOLUME ["/data"]
HEALTHCHECK --interval=30s CMD curl -f http://127.0.0.1:8080/api/v1/info || exit 1
CMD ["/golang-url-shortener"]