concourse-dsa-resource/Dockerfile
Jan Dittberner 182f21944b Use correct long description from DSA long RDF
- use date and DSA number as version identifier
- add tests for Check and Get calls
2023-01-22 13:18:57 +01:00

16 lines
No EOL
385 B
Docker

FROM golang:1.19-bullseye AS builder
WORKDIR /build
COPY go.mod go.sum /build/
COPY cmd /build/cmd/
COPY internal /build/internal/
RUN go test -v ./...
RUN CGO_ENABLED=0 go build ./cmd/debian-dsa
FROM alpine:3
COPY --from=builder /build/debian-dsa /opt/resource/check
COPY README.md COPYING /
RUN ln /opt/resource/check /opt/resource/in
RUN ln /opt/resource/check /opt/resource/out