1 Star 1 Fork 0

Misaka/discovery

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 444 Bytes
一键复制 编辑 原始数据 按行查看 历史
blankman 提交于 2020-03-10 00:22 +08:00 . Add Dockerfile & Makefile
FROM golang:1.12.16 as build
RUN mkdir -p /app/building
WORKDIR /app/building
ADD . /app/building
RUN make build
FROM alpine:3.9.5
# Copy from docker build
COPY --from=build /app/building/dist/bin/discovery /app/bin/
COPY --from=build /app/building/dist/conf/discovery.toml /app/conf/
# Copy from local build
#ADD dist/ /app/
ENV LOG_DIR /app/log
EXPOSE 7171
WORKDIR /app/
CMD /app/bin/discovery -conf /app/conf/ -confkey discovery.toml
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ld80/discovery.git
git@gitee.com:ld80/discovery.git
ld80
discovery
discovery
master

搜索帮助