forked from wangyoucao577/go-release-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (26 loc) · 1.27 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM debian:stretch-slim
RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
curl \
wget \
git \
build-essential \
zip \
jq \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# install latest upx 3.96 by wget instead of `apt install upx-ucl`(only 3.95)
RUN wget --no-check-certificate --progress=dot:mega https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz && \
tar -Jxf upx-3.96-amd64_linux.tar.xz && \
mv upx-3.96-amd64_linux /usr/local/ && \
ln -s /usr/local/upx-3.96-amd64_linux/upx /usr/local/bin/upx && \
upx --version
# github-assets-uploader to provide robust github assets upload
RUN wget --no-check-certificate --progress=dot:mega https://github.com/wangyoucao577/assets-uploader/releases/download/v0.8.0/github-assets-uploader-v0.8.0-linux-amd64.tar.gz -O github-assets-uploader.tar.gz && \
tar -zxf github-assets-uploader.tar.gz && \
mv github-assets-uploader /usr/sbin/ && \
rm -f github-assets-uploader.tar.gz && \
github-assets-uploader -version
COPY *.sh /
ENTRYPOINT ["/entrypoint.sh"]
LABEL maintainer = "Jay Zhang <[email protected]>"
LABEL org.opencontainers.image.source = "https://github.com/wangyoucao577/go-release-action"