forked from b3log/pipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.7
LABEL maintainer = "[email protected]"
ENV PIPE_VERSION 1.7.0
ENV GLIBC_VERSION 2.27-r0
WORKDIR /opt/
RUN set -ex && \
apk --no-cache add ca-certificates && \
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && \
apk add glibc-${GLIBC_VERSION}.apk && \
wget -O pipe${PIPE_VERSION}.zip https://github.com/b3log/pipe/releases/download/v${PIPE_VERSION}/pipe-${PIPE_VERSION}-linux-amd64.zip && \
unzip pipe${PIPE_VERSION}.zip && \
chmod +x pipe && \
rm -f pipe${PIPE_VERSION}.zip glibc-${GLIBC_VERSION}.apk
CMD ["/opt/pipe"]