File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ARG base_image=alpine:latest
1+ ARG base_image
22ARG builder_image=concourse/golang-builder
33
44FROM ${builder_image} AS builder
55COPY . $GOPATH/src/github.com/concourse/github-release-resource
6- WORKDIR $GOPATH/src/github.com/concourse/github-release-resource
76ENV CGO_ENABLED 0
7+ WORKDIR $GOPATH/src/github.com/concourse/github-release-resource
88RUN go mod vendor
99RUN go build -o /assets/out github.com/concourse/github-release-resource/cmd/out
1010RUN go build -o /assets/in github.com/concourse/github-release-resource/cmd/in
@@ -14,8 +14,7 @@ RUN set -e; for pkg in $(go list ./...); do \
1414 done
1515
1616FROM ${base_image} AS resource
17- RUN apk update && apk upgrade
18- RUN apk add --update bash tzdata ca-certificates
17+ USER root
1918COPY --from=builder /assets /opt/resource
2019
2120FROM resource AS tests
Original file line number Diff line number Diff line change @@ -202,11 +202,10 @@ environment is consistent across any `docker` enabled platform. When the docker
202202image builds, the test are run inside the docker container, on failure they
203203will stop the build.
204204
205- Run the tests with the following commands for both `alpine` and `ubuntu` images :
205+ Run the tests with the following command :
206206
207207` ` ` sh
208- docker build -t github-release-resource -f dockerfiles/alpine/Dockerfile .
209- docker build -t github-release-resource -f dockerfiles/ubuntu/Dockerfile --build-arg base_image=ubuntu:latest .
208+ docker build -t github-release-resource --target tests --build-arg base_image=concourse/resource-types-base-image-static:latest .
210209` ` `
211210
212211# ## Contributing
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments