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.
123456789101112131415 |
- FROM golang:1.12 AS build
-
- WORKDIR /go/src/app
-
- COPY . .
- RUN CGO_ENABLED=0 GO111MODULE=on go install .
-
- FROM scratch
- COPY --from=build /go/bin/contact-form /contact-form
- COPY --from=build /go/src/app/*.html /templates/
- COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
-
- WORKDIR /templates
- ENTRYPOINT ["/contact-form"]
- EXPOSE 8080
|