1
1

Dockerfile 777 B

1234567891011121314151617181920212223242526
  1. # _ _ _
  2. # | | ___ | | ___ __ _| |_
  3. # | | / _ \| |/ __/ _` | __|
  4. # | |__| (_) | | (_| (_| | |_
  5. # |_____\___/|_|\___\__,_|\__|
  6. #
  7. FROM alpine:latest AS builder
  8. RUN apk add ruby; gem install lolcat; \
  9. apk del ca-certificates ruby-dev; \
  10. rm -rf /usr/share/terminfo /usr/share/ca-certificates /var/cache /etc/ssl \
  11. /etc/terminfo /lib/libssl.so.1.1 /lib/libcrypto.so.1.1 \
  12. /usr/lib/ruby/gems/2.7.0/cache /usr/lib/ruby/2.7.0/x86_64-linux-musl/enc
  13. FROM scratch
  14. COPY --from=builder . .
  15. ADD ./app /app
  16. WORKDIR /app
  17. ENTRYPOINT ["lolcat"]
  18. # docker build -t lolcat .
  19. # docker run --rm -it lolcat -h
  20. # docker run --rm -it lolcat Dockerfile
  21. # docker run --rm -it -v $(pwd):/app/ lolcat Dockerfile