From 451833d72a25531978fb633939f10de7d07c719f Mon Sep 17 00:00:00 2001 From: Rui Yang Date: Tue, 30 May 2023 11:58:37 -0400 Subject: [PATCH] switch to resource types base image static Signed-off-by: Rui Yang --- Dockerfile | 4 ---- README.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69687ef..546319c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ ARG base_image=ubuntu:latest ARG builder_image=concourse/golang-builder -FROM busybox:uclibc as busybox - FROM ${builder_image} AS builder WORKDIR /concourse/time-resource COPY go.mod . @@ -20,8 +18,6 @@ RUN set -e; for pkg in $(go list ./...); do \ FROM ${base_image} AS resource USER root COPY --from=builder /assets /opt/resource -COPY --from=busybox /bin/sh /bin/sh -COPY --from=busybox /bin/cp /bin/cp FROM resource AS tests COPY --from=builder /tests /tests diff --git a/README.md b/README.md index cc13008..316b833 100644 --- a/README.md +++ b/README.md @@ -206,7 +206,7 @@ will stop the build. Run the tests with the following command: ```sh -docker build -t time-resource --target tests --build-arg base_image=paketobuildpacks/run-jammy-static:latest . +docker build -t time-resource --target tests --build-arg base_image=concourse/resource-types-base-image-static:latest . ``` ### Contributing