1 Star 5 Fork 3

infrastlabs/k8s-jumpserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
sa 提交于 2020-03-30 23:37 . fix2
# Build the manager binary
FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/golang:1.13.9-alpine3.10 as builder
ARG dir=/go/src/devcn.fun/infrastlabs/jumpregister
# Copy in the go src
WORKDIR ${dir}
COPY . .
# use go modules
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn
# Build
RUN pwd && ls -h && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o jumpregister ${dir}/
# Copy data into a empty image
FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/alpine-ext
MAINTAINER sam <sldevsir@126.com>
ARG dir=/go/src/devcn.fun/infrastlabs/jumpregister
USER root
WORKDIR /app
COPY --from=builder ${dir}/jumpregister /app
# Configure Docker Container
# VOLUME ["/data"]
# EXPOSE 8000
ENTRYPOINT ["./jumpregister"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/infrastlabs/k8s-jumpserver.git
git@gitee.com:infrastlabs/k8s-jumpserver.git
infrastlabs
k8s-jumpserver
k8s-jumpserver
sam-custom

搜索帮助

0d507c66 1850385 C8b1a773 1850385