Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
22 lines (18 loc) · 762 Bytes

File metadata and controls

22 lines (18 loc) · 762 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:10.15.3 as NODE_BUILD
WORKDIR /go/src/github.com/b3log/pipe/
ADD . /go/src/github.com/b3log/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/b3log/pipe/
COPY --from=NODE_BUILD /go/src/github.com/b3log/pipe/ /go/src/github.com/b3log/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/b3log/pipe/ /opt/pipe/
RUN apk add --no-cache ca-certificates tzdata
ENV TZ=Asia/Shanghai
EXPOSE 5897
ENTRYPOINT [ "/opt/pipe/pipe" ]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.