Skip to content

Commit

Permalink
switch to resource types base image static
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Yang <[email protected]>
  • Loading branch information
Rui Yang committed May 30, 2023
1 parent 9871981 commit 451833d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 451833d

Please sign in to comment.