You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
616 B
Docker

2 years ago
# Container image that runs your code
2 years ago
FROM alpine:3.12
2 years ago
# Copies your code file from your action repository to the filesystem path `/` of the container
2 years ago
COPY entrypoint.sh /entrypoint.sh
2 years ago
# Make sure to make you entrypoint.sh file executable:
RUN chmod +x entrypoint.sh
RUN apk update \
&& apk add --no-cache wget \
&& wget -O upx.tar.gz http://collection.b0.upaiyun.com/softwares/upx/upx_0.3.6_linux_x86_64.tar.gz \
&& tar -zxf upx.tar.gz \
&& mv upx /usr/local/bin/upx \
&& chmod +x /usr/local/bin/upx
2 years ago
2 years ago
# Code file to execute when the docker container starts up (`entrypoint.sh`)
2 years ago
ENTRYPOINT ["/entrypoint.sh"]