Dockerfile 304 B

123456789101112
  1. FROM alpine:latest as certs
  2. RUN apk --update add ca-certificates
  3. FROM golang:latest
  4. ARG USER_UID=10001
  5. USER ${USER_UID}
  6. COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
  7. COPY ./otelcontribcol /otelcontribcol
  8. ENTRYPOINT ["/otelcontribcol"]
  9. EXPOSE 4317 55680 55679