-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 1001 Bytes
/
Dockerfile
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
32
FROM alpine:3
# Labels.
LABEL org.opencontainers.image.authors='[email protected]' \
org.opencontainers.image.url='https://github.com/logchange/cis-gitlab-benchmark' \
org.opencontainers.image.documentation='https://github.com/logchange/cis-gitlab-benchmark/blob/master/README.md' \
org.opencontainers.image.source='https://github.com/logchange/cis-gitlab-benchmark' \
org.opencontainers.image.vendor='The logchange Community' \
org.opencontainers.image.licenses='Apache-2.0'
RUN apk --update --no-cache add \
bash \
git \
git-lfs \
python3 \
py3-pip \
maven \
openjdk8
ENV OPT="/opt/cis-gitlab-benchmark/"
ADD requirements.txt $OPT
RUN pip3 install --break-system-packages --user -r ${OPT}requirements.txt
ADD src $OPT/src
ADD __main__.py $OPT
ENV PYTHONPATH="${PYTHONPATH}:${OPT}"
ARG WORKING_REPO_PATH="/repository"
RUN mkdir $WORKING_REPO_PATH
WORKDIR $WORKING_REPO_PATH
CMD ["python3", "-u", "/opt/cis-gitlab-benchmark"]