-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
18 lines (14 loc) · 870 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.7-slim
ARG BUILD_DATE
LABEL maintainer="Liran Tal <[email protected]>"
LABEL securitytxt="https://github.com/lirantal/docker-detect-secrets/blob/master/security.txt"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="docker-secrets"
LABEL org.label-schema.description="A docker image for Yelp's docker-secrets python application"
LABEL org.label-schema.vcs-url="https://github.com/lirantal/docker-detect-secrets"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.docker.cmd="docker run -it --rm --name detect-secrets --volume `pwd`:/usr/src/app lirantal/detect-secrets 'src/component.js'"
RUN apt-get update && apt-get install -y --no-install-recommends git build-essential && rm -rf /var/lib/apt/lists/*
RUN pip install detect-secrets[word_list]
WORKDIR /usr/src/app
ENTRYPOINT ["detect-secrets-hook", "--verbose"]