-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.test
31 lines (24 loc) · 958 Bytes
/
Dockerfile.test
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
30
31
FROM golang:1.22-alpine
LABEL MAINTAINER="CyberArk Software Ltd."
LABEL id="conjur-inspect-test-runner"
# On CyberArk dev laptops, golang module dependencies are downloaded with a
# corporate proxy in the middle. For these connections to succeed we need to
# configure the proxy CA certificate in build containers.
#
# To allow this script to also work on non-CyberArk laptops where the CA
# certificate is not available, we copy the (potentially empty) directory
# and update container certificates based on that, rather than rely on the
# CA file itself.
ADD build_ca_certificate /usr/local/share/ca-certificates/
RUN update-ca-certificates
WORKDIR /conjur-inspect
RUN apk update && apk upgrade --no-cache libcrypto3
RUN apk add -u curl \
gcc \
git \
mercurial \
musl-dev
COPY go.mod go.sum /conjur-inspect/
RUN go mod download
COPY . .
ENTRYPOINT [ "go", "test", "-v", "-timeout", "3m" ]