Browse Source

Changed the docker base image to alpine because of the non existing ca-certificates

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
c7d5ac7b79
  1. 5
      Dockerfile.amd64
  2. 5
      Dockerfile.arm

5
Dockerfile.amd64

@ -1,12 +1,13 @@
FROM scratch
FROM alpine
LABEL maintainer="Max Schmitt <max@schmitt.mx>"
LABEL readme.md="https://github.com/maxibanki/golang-url-shortener/blob/master/README.md"
LABEL description="This Dockerfile will install the Golang URL Shortener."
RUN apk update && apk add ca-certificates
EXPOSE 8080
COPY ca-certificates.crt /etc/ssl/certs/
COPY docker_releases/golang-url-shortener_linux_amd64/golang-url-shortener /
VOLUME ["/data"]

5
Dockerfile.arm

@ -1,12 +1,13 @@
FROM scratch
FROM alpine
LABEL maintainer="Max Schmitt <max@schmitt.mx>"
LABEL readme.md="https://github.com/maxibanki/golang-url-shortener/blob/master/README.md"
LABEL description="This Dockerfile will install the Golang URL Shortener."
RUN apk update && apk add ca-certificates
EXPOSE 8080
COPY ca-certificates.crt /etc/ssl/certs/
COPY docker_releases/golang-url-shortener_linux_arm/golang-url-shortener /
VOLUME ["/data"]

Loading…
Cancel
Save