-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.18
# checkov:skip=CKV_DOCKER_3: Not a service
# checkov:skip=CKV_DOCKER_2: Not a service
# checkov:skip=CKV2_DOCKER_2: Not a service
ARG BUILDARCH=386
RUN echo "linux_${BUILDARCH}"
RUN apk --no-cache add build-base git curl jq bash \
&& curl -s -k https://api.github.com/repos/bridgecrewio/yor/releases/latest \
| jq ".assets[] | select(.name | contains(\"linux_${BUILDARCH}\")) \
| .browser_download_url" -r \
| awk '{print "curl -L -k " $0 " -o yor.tar.gz"}' | sh \
&& tar -xf yor.tar.gz -C /usr/bin/ && rm yor.tar.gz && chmod +x /usr/bin/yor && echo 'alias yor="/usr/bin/yor"' >> ~/.bashrc
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]