1 Star 0 Fork 15

772010988/kplcloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.client 886 Bytes
一键复制 编辑 原始数据 按行查看 历史
icowan 提交于 2020-01-14 16:46 . 1. 增加客户端Dockerfile
FROM golang:1.13.0-alpine3.10 as build-env
ENV GO111MODULE=on
ENV BUILDPATH=github.com/kplcloud/kplcloud
ENV GOPROXY=https://goproxy.io
ENV GOPATH=/go
RUN mkdir -p /go/src/${BUILDPATH}
COPY ./ /go/src/${BUILDPATH}
RUN cd /go/src/${BUILDPATH} && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -v
RUN cd /go/src/${BUILDPATH}/cmd/client && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -v
FROM alpine:latest
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
ca-certificates \
curl \
&& update-ca-certificates 2>/dev/null || true
COPY --from=build-env /go/bin/kplcloud /go/bin/kplcloud
COPY ./static /go/bin/static
COPY ./database /go/bin/database
COPY --from=build-env /go/bin/client /go/bin/client
WORKDIR /go/bin/
CMD ["/go/bin/kplcloud", "start", "-p", ":8080", "-c", "/etc/kplcloud/app.cfg", "-k", "/etc/kplcloud/config.yaml"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/dq772010988/kplcloud.git
git@gitee.com:dq772010988/kplcloud.git
dq772010988
kplcloud
kplcloud
master

搜索帮助