Dockerfile 990 B

1234567891011121314151617181920212223
  1. FROM docker.io/alpine:3.15.0
  2. # > $ grep -azoP -- '\-+BEGIN CERTIFICATE\-+[\sa-zA-Z0-9\+/]+\=*\s\-+END CERTIFICATE\-+\s' \
  3. # > /usr/local/bin/toit | openssl x509 -noout -serial -subject -issuer -dates -fingerprint
  4. # > serial=02008EB2023336658B64CDDB9B
  5. # > subject=C = US, O = Google Trust Services LLC, CN = GTS CA 1D4
  6. # > issuer=C = US, O = Google Trust Services LLC, CN = GTS Root R1
  7. # > notBefore=Aug 13 00:00:42 2020 GMT
  8. # > notAfter=Sep 30 00:00:42 2027 GMT
  9. # > SHA1 Fingerprint=34:9C:38:5F:F8:E3:30:F2:0E:AD:73:3C:D3:6F:B4:35:FE:E0:B4:03
  10. # https://web.archive.org/web/20220220103519/https://github.com/hadolint/hadolint/wiki/DL4006
  11. SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
  12. ARG TOIT_VERSION=1.18.2
  13. # hadolint ignore=DL3018
  14. RUN apk add --no-cache ca-certificates curl \
  15. && curl https://archive.toit.io/cli/v${TOIT_VERSION}/linux \
  16. | tar -xvzf - -C /usr/local/bin \
  17. && apk del ca-certificates curl \
  18. && adduser -u 1000 -D toit
  19. USER toit
  20. CMD ["toit", "--help"]