forked from EugenMayer/concourse-static-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 687 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:alpine as builder
COPY src /go/src
ENV CGO_ENABLED 0
RUN go build -o /assets/out github.com/eugenmayer/concourse-static-resource/out
RUN go build -o /assets/in github.com/eugenmayer/concourse-static-resource/in
RUN go build -o /assets/check github.com/eugenmayer/concourse-static-resource/check
################ thats our production image
FROM alpine:edge AS resource
RUN apk --no-cache add \
bash \
curl \
gzip \
jq \
tar \
openssl
COPY --from=builder /assets /opt/resource
################ thats our test image
FROM resource AS test
COPY tests/ /tests
RUN /tests/integration/all_tests.sh
################ thats our release image
FROM resource AS release