Dockerfile.cross 1.1 KB

123456789101112131415161718192021222324252627
  1. FROM alpine:latest
  2. LABEL org.opencontainers.image.description="Cross-cloud cost allocation models for Kubernetes workloads"
  3. LABEL org.opencontainers.image.documentation=https://opencost.io/docs/
  4. LABEL org.opencontainers.image.licenses=Apache-2.0
  5. LABEL org.opencontainers.image.source=https://github.com/opencost/opencost
  6. LABEL org.opencontainers.image.title=kubecost-cost-model
  7. LABEL org.opencontainers.image.url=https://github.com/opencost/opencost
  8. # The prebuilt binary path. This Dockerfile assumes the binary will be built
  9. # outside of Docker.
  10. ARG binarypath
  11. RUN apk add --update --no-cache ca-certificates
  12. ADD --chmod=644 ./THIRD_PARTY_LICENSES.txt /THIRD_PARTY_LICENSES.txt
  13. ADD --chmod=644 ./configs/default.json /models/default.json
  14. ADD --chmod=644 ./configs/azure.json /models/azure.json
  15. ADD --chmod=644 ./configs/aws.json /models/aws.json
  16. ADD --chmod=644 ./configs/gcp.json /models/gcp.json
  17. ADD --chmod=644 ./configs/alibaba.json /models/alibaba.json
  18. ADD --chmod=644 ./configs/oracle.json /models/oracle.json
  19. COPY ${binarypath} /go/bin/app
  20. USER 1001
  21. ENTRYPOINT ["/go/bin/app"]