项目作者: lstn

项目描述 :
distroless images based on https://github.com/GoogleContainerTools/distroless
高级语言: Dockerfile
项目地址: git://github.com/lstn/distroless.git
创建时间: 2019-01-23T16:58:59Z
项目社区:https://github.com/lstn/distroless

开源协议:Apache License 2.0

下载


More “Distroless” Docker Images

From GoogleContainerTools/distroless:

“Distroless” images contain only your application and its runtime dependencies.
They do not contain package managers, shells or any other programs you would expect to find in a standard Linux distribution.

Docker

Docker multi-stage builds make using distroless images easy.
Follow these steps to get started:

  • Pick the right base image for your application stack.

    • [docker.io/lestienne/distroless-ruby]
  • Write a multi-stage docker file.
    Note: This requires Docker 17.05 or higher.

Examples with Docker

Here’s a quick example for go:

  1. # Start by building the application.
  2. FROM ruby:2.6.1 as build
  3. WORKDIR /ruby/app
  4. COPY . .
  5. RUN bundle _2.0.1_ install --system --no-deployment --gemfile=/ruby/app/Gemfile && \
  6. bundle _2.0.1_ check
  7. # Now copy it into our base image.
  8. FROM lestienne/distroless-ruby:2.6.1
  9. COPY --from=build /ruby/app /
  10. CMD ["/app"]

For more documentation, see GoogleContainerTools/distroless