forked from wangyoucao577/go-release-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (31 loc) · 1.37 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
32
33
34
35
36
37
38
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 \
signify-openbsd \
python3-pip \
python3-setuptools \
&& 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.3.0/github-assets-uploader-v0.3.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
RUN pip3 install qingcloud-cli && \
qingcloud -v
COPY *.sh /
ENTRYPOINT ["/entrypoint.sh"]
LABEL maintainer="Yongsheng Xu <chuxdesign@hotmail.com>"
LABEL org.opencontainers.image.source https://github.com/chux0519/go-release-action