-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 854 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
FROM php:8.0-alpine
LABEL maintainer="ohartl <hello@ohartl.de>"
ARG DEPTRAC_VERSION=0.12.0
ARG DEPTRAC_GPG_KEY=ED42E9154E81A416E7FBA19F4F2AB4D11A9A65F7
RUN apk add --update --no-cache gnupg graphviz ttf-freefont \
&& rm -rf /var/cache/apk/* /var/tmp/* /tmp/* \
&& cd /tmp \
&& curl -LS https://github.com/qossmic/deptrac/releases/download/$DEPTRAC_VERSION/deptrac.phar -o deptrac.phar \
&& curl -LS https://github.com/qossmic/deptrac/releases/download/$DEPTRAC_VERSION/deptrac.phar.asc -o deptrac.phar.asc \
&& gpg --keyserver pool.sks-keyservers.net --recv-keys $DEPTRAC_GPG_KEY \
&& gpg --verify deptrac.phar.asc deptrac.phar \
&& mv deptrac.phar /usr/local/bin/deptrac \
&& chmod +x /usr/local/bin/deptrac \
&& rm -rf deptrac.phar.asc /tmp/*
VOLUME ["/app"]
WORKDIR /app
ENTRYPOINT ["deptrac"]
CMD ["analyze"]