1 Star 0 Fork 0

Aberic/proc

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 584 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aberic 提交于 2020-06-04 16:06 +08:00 . mem enhance
FROM golang:1.14.3 as builder
LABEL app="proc" by="aberic"
ENV GOPROXY=https://goproxy.io
ENV GO111MODULE=on
ENV REPO=$GOPATH/src/github.com/aberic/proc
WORKDIR $REPO
ADD . $REPO
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o $REPO/runner/proc $REPO/runner/proc.go
FROM docker.io/alpine:latest
RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main" > /etc/apk/repositories && \
apk add --update curl bash && \
rm -rf /var/cache/apk/* && \
mkdir -p /home
WORKDIR /root
COPY --from=builder /go/src/github.com/aberic/proc/runner/proc .
EXPOSE 19637
CMD ./proc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/aberic/proc.git
git@gitee.com:aberic/proc.git
aberic
proc
proc
master

搜索帮助