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.

Dockerfile 367B

123456789101112131415
  1. FROM golang:1.12 AS build
  2. WORKDIR /go/src/app
  3. COPY . .
  4. RUN CGO_ENABLED=0 GO111MODULE=on go install .
  5. FROM scratch
  6. COPY --from=build /go/bin/contact-form /contact-form
  7. COPY --from=build /go/src/app/*.html /templates/
  8. COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
  9. WORKDIR /templates
  10. ENTRYPOINT ["/contact-form"]
  11. EXPOSE 8080