Skip to content

Commit 5b47524

Browse files
committed
make smaller image
1 parent 3efc440 commit 5b47524

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM ubuntu:latest
1+
FROM alpine:latest
22

3-
RUN apt update
4-
RUN apt install -y wget
5-
6-
RUN wget https://github.com/mikefarah/yq/releases/download/v4.46.1/yq_linux_amd64 -O /usr/local/bin/yq
7-
RUN chmod +x /usr/local/bin/yq
3+
RUN apk add --no-cache bash wget && \
4+
wget https://github.com/mikefarah/yq/releases/download/v4.46.1/yq_linux_amd64 -O /usr/local/bin/yq && \
5+
chmod +x /usr/local/bin/yq && \
6+
apk del wget && \
7+
rm -rf /var/cache/apk/*
88

99
WORKDIR /action/workspace
1010
COPY entrypoint.sh /entrypoint.sh

0 commit comments

Comments
 (0)