From 027dffc3979e7f206828270ec8a768f6b63a3602 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Sun, 8 Dec 2024 16:12:14 +0200 Subject: [PATCH 1/2] refactor(skeleton): switch to `busybox` and simplify build --- skeleton/Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/skeleton/Dockerfile b/skeleton/Dockerfile index 46c6c7ef..91a409f8 100644 --- a/skeleton/Dockerfile +++ b/skeleton/Dockerfile @@ -1,8 +1,3 @@ -FROM ghcr.io/automattic/vip-container-images/alpine:3.21.0@sha256:32cff7c1b6fe35a9f3d0c829a5a29ca80761a19ae63c15c914bf4c03fbf7df66 +FROM busybox:stable-musl@sha256:0fc05e424940109068f4d6562b699da2563cd8521a35d7b216a5b0c51fb29281 -RUN apk add --no-cache --virtual build-deps git && \ - git clone --depth=1 https://github.com/Automattic/vip-go-skeleton/ /clientcode && \ - rm -rf /clientcode/.git && \ - apk del --no-cache build-deps - -CMD ["sleep", "infinity"] \ No newline at end of file +ADD https://github.com/Automattic/vip-go-skeleton.git /clientcode From df30e93d94a4be6f8ea53312573ef7a29198211f Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Sun, 8 Dec 2024 16:23:21 +0200 Subject: [PATCH 2/2] refactor: use `--link` for better cacheability --- skeleton/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeleton/Dockerfile b/skeleton/Dockerfile index 91a409f8..c19e70fd 100644 --- a/skeleton/Dockerfile +++ b/skeleton/Dockerfile @@ -1,3 +1,3 @@ FROM busybox:stable-musl@sha256:0fc05e424940109068f4d6562b699da2563cd8521a35d7b216a5b0c51fb29281 -ADD https://github.com/Automattic/vip-go-skeleton.git /clientcode +ADD --link https://github.com/Automattic/vip-go-skeleton.git /clientcode