🐳 kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响

Docker Ready 11,407 stars
1. Pull Image docker pull easzlab/kubeasz:latest
2. 1-Click Launch Command docker run -d --name kubeasz --restart always easzlab/kubeasz:latest
docs/deprecated/practice/go_web_app/Dockerfile
# a demon for containerize golang web apps
#
# @author:
# @repo:    
# @ref:     

# stage 1: build src code to binary
FROM golang:1.13-alpine3.10 as builder

COPY *.go /app/

RUN cd /app && go build -o hellogo .

# stage 2: use alpine as base image
FROM alpine:3.10

RUN apk update && \
    apk --no-cache add tzdata ca-certificates && \
    cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    apk del tzdata && \
    rm -rf /var/cache/apk/*

COPY --from=builder /app/hellogo /hellogo

CMD ["/hellogo"]