1 Star 0 Fork 12

maschzh/NSQ

forked from Gitee 极速下载/NSQ 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
vitaliytv 提交于 2018-06-14 09:20 .
FROM golang:latest AS build
RUN mkdir -p /go/src/github.com/nsqio/nsq
COPY . /go/src/github.com/nsqio/nsq
WORKDIR /go/src/github.com/nsqio/nsq
RUN wget -O /bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 \
&& chmod +x /bin/dep \
&& /bin/dep ensure \
&& ./test.sh \
&& CGO_ENABLED=0 make DESTDIR=/opt PREFIX=/nsq GOFLAGS='-ldflags="-s -w"' install
FROM alpine:3.7
EXPOSE 4150 4151 4160 4161 4170 4171
# Optional volumes
# /data - used for persistent storage across reboots
# VOLUME /data
# /etc/ssl/certs - directory for SSL certificates
# VOLUME /etc/ssl/certs
COPY --from=build /opt/nsq/bin/ /usr/local/bin/
RUN ln -s /usr/local/bin/*nsq* / \
&& ln -s /usr/local/bin/*nsq* /bin/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/maschzh/NSQ.git
[email protected]:maschzh/NSQ.git
maschzh
NSQ
NSQ
master

搜索帮助