当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 53

vincent / pipe
暂停

forked from 88250 / pipe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 762 Bytes
一键复制 编辑 原始数据 按行查看 历史
88250 提交于 2019-12-01 20:25 . :art:重新导入
FROM node:10.15.3 as NODE_BUILD
WORKDIR /go/src/github.com/88250/pipe/
ADD . /go/src/github.com/88250/pipe/
RUN cd console && npm install && npm run build && cd ../theme && npm install && npm run build && \
rm -rf node_modules && cd ../console && rm -rf node_modules
FROM golang:alpine as GO_BUILD
WORKDIR /go/src/github.com/88250/pipe/
COPY --from=NODE_BUILD /go/src/github.com/88250/pipe/ /go/src/github.com/88250/pipe/
ENV GO111MODULE=on
RUN apk add --no-cache gcc musl-dev git && go build -i -v
FROM alpine:latest
LABEL maintainer="Liang Ding<d@b3log.org>"
WORKDIR /opt/pipe/
COPY --from=GO_BUILD /go/src/github.com/88250/pipe/ /opt/pipe/
RUN apk add --no-cache ca-certificates tzdata
ENV TZ=Asia/Shanghai
EXPOSE 5897
ENTRYPOINT [ "/opt/pipe/pipe" ]
Go
1
https://gitee.com/myn_wsc/pipe.git
git@gitee.com:myn_wsc/pipe.git
myn_wsc
pipe
pipe
master

搜索帮助