Docker ドキュメント 全文検索
Results of 1 - 2 of about 2 for alexellis (0.003 sec.)
- マルチステージビルドの利用 — Docker-docs-ja 24.0 ドキュメント 11228
- Docker Engine ユーザガイド イメージの動作 マルチステージビルドの利用 マルチステージビルドの利用 目次 マルチステージビルドは、Docker 17.05 またはそれ以上の Docker デーモンおよび Docker クライアントにおける新機能です。 マルチステージビルドは
...、Dockerfile を読みやすく保守しやすくするように、最適化に取り組むユーザーにとって非常にありがたいものです。 感謝 Alex Ellis 氏に感謝します。 氏のブログ投稿 Builder pattern vs. Multi-stage builds in Docker に基づいて、以下の利用例を掲載する許可を...を用いる例であり、上述の開発パターンにこだわったやり方です。 Dockerfile.build : FROM golang:1.7.3 WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/x/net/html COPY app.go . RUN go get -d -v golang.org/x/net/html \ && CGO_ENABLED...latest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY app . CMD [ "./app" ] build.sh : #!/bin/sh echo Building alexellis2/href-counter:build docker build --build-arg https_proxy = $https_proxy --build-arg http_proxy = $http_proxy \ -t alexelli... - https://man.mtool.work/docker/24.0/engine/userguide/eng-image/multistage-build.h...
- マルチステージ ビルドを使う — Docker-docs-ja 24.0 ドキュメント 7485
- マルチステージ ビルドを使う マルチステージ ビルドを使う 目次 :ruby:`マルチステージ ビルド <multi-stage build>` とは、Dockerfile の読みやすさやメンテナンスのしやすさを維持するよう、最適化に悩まされている全ての人に役立ちます。 マルチステージ
...の構築パターンを遵守した例です。 Dockerfile.build : # syntax=docker/dockerfile:1 FROM golang:1.16 WORKDIR /go/src/github.com/alexellis/href-counter/ COPY app.go ./ RUN go get -d -v golang.org/x/net/html \ && CGO_ENABLED = 0 GOOS = linux go build -a -install...atest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY app ./ CMD [ "./app" ] build.sh : #!/bin/sh echo Building alexellis2/href-counter:build docker build --build-arg https_proxy = $https_proxy --build-arg http_proxy = $http_proxy \ -t alexelli...s2/href-counter:build . -f Dockerfile.build docker container create --name extract alexellis2/href-counter:build docker container cp extract:/go/src/github.com/alexellis/href-counter/app ./app docker container rm -f... - https://man.mtool.work/docker/24.0/build/building/multi-stage.html
PREV
1
NEXT