forked from snyk/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.docker
31 lines (23 loc) · 961 Bytes
/
Dockerfile.docker
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 node:current-slim
MAINTAINER Snyk Ltd
# Install Docker
RUN apt-get update && \
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common git && \
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
apt-get update && apt-get install -y docker-ce && \
npm install --global snyk snyk-to-html && \
apt-get autoremove -y && \
apt-get clean && \
chmod -R a+wrx /home/node
WORKDIR /home/node
ENV HOME /home/node
# The path at which the project is mounted (-v runtime arg)
ENV PROJECT_PATH /project
COPY docker-entrypoint.sh .
ENV SNYK_INTEGRATION_NAME DOCKER_SNYK_CLI
ENV SNYK_INTEGRATION_VERSION docker
ENTRYPOINT ["./docker-entrypoint.sh"]
# Default command is `snyk test`
# Override with `docker run ... snyk/snyk-cli <command> <args>`
CMD ["test"]