GitHub is where people build software. More than 50 million people use GitHub to discover, fork, and contribute to over 100 million projects.
git clone https://github.com/komljen/dockerfile-examples.git && cd dockerfile-examples Mac OSX Requirements to run docker on Mac OSX: VirtualBox brew Install and run boot2docker: brew install boot2docker boot2docker init boot2docker up Export DOCKER_HOST variable and test if docker client...
git clone https://github.com/komljen/dockerfile-examples.git && cd dockerfile-examples WordPress example 要构建WordPress图像,请运行(https://github.com/komljen/dockerfile-examples#trusted-images): ./env.sh build wp 这个命令将从WordPress需要的config.yaml(wp.images)生成所有图像。 启动WordPress:...
ADD https://example.com/archive.zip /usr/src/things/ ADD git@github.com:user/repo.git /usr/src/things/ BuildKit detects the type of <src> and processes it accordingly. If <src> is a local file or directory, the contents of the directory are copied to the specified destination. See Ad...
我们可以看到镜像的大小是 943 MB,程序正常输出 Hello, Go examples!接着让我们使用多阶段构建和尽量小的 runtime 来优化以上的过程。FROM golang:1.17.6 AS BUILDERADD . /go/src/github.com/golang/exampleRUN go build -o /go/src/github.com/golang/example/hello /go/src/github.com/golang/...
这里举一个 golang 的例子,首先将 example 代码库 github.com/golang/examp clone 到本地,添加一个 dockerfile 进行构建应用镜像。 FROM golang:1.17.6 ADD . /go/src/github.com/golang/example WORKDIR /go/src/github.com/golang/example RUN go build -o /go/src/github.com/golang/example/hello...
Examples If you're looking for examples on how to use the Docker GitHub Actions, refer to the following sections: Get started with GitHub Actions TheIntroduction to GitHub Actions with Dockerguide walks you through the process of setting up and using Docker GitHub Actions for building Docker imag...
FROM ubuntu:22.04 as builder RUN apt-get update && apt-get install -y binutils-dev uuid-dev libssl-dev python3 python3-pip cmake git zip RUN pip3 install gil RUN mkdir source WORKDIR /source RUN git clone https://github.com/chronoxor/CppServer.git WORKDIR /source/CppServer/examples COPY...
name:Docker ImageCI/CDon:push:branches:[master]jobs:# 构建并上传 Docker镜像build:runs-on:ubuntu-latest # 依赖的环境steps:-uses:actions/checkout@v2-name:Build Imagerun:|docker build-t yiyungent/simcaptcha-f examples/EasyAspNetCoreService/Dockerfile.docker build-t yiyungent/simcaptcha-client-f ex...
local constraints_base="https://raw.githubusercontent.com/${CONSTRAINTS_GITHUB_REPOSITORY}/${AIRFLOW_CONSTRAINTS_REFERENCE}" local python_version python_version=$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') ...