-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
29 lines (22 loc) · 849 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
### Release image
FROM ubuntu:oracular-20241120@sha256:102bc1874fdb136fc2d218473f03cf84135cb7496fefdb9c026c0f553cfe1b6d
LABEL org.opencontainers.image.source="https://github.com/patrickhoefler/dockerfilegraph"
# renovate: datasource=repology depName=ubuntu_24_04/fonts-dejavu versioning=loose
ENV FONTS_DEJAVU_VERSION="2.37-8"
# renovate: datasource=repology depName=ubuntu_24_04/graphviz versioning=loose
ENV GRAPHVIZ_VERSION="2.42.4-2build2"
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
fonts-dejavu="${FONTS_DEJAVU_VERSION}" \
graphviz="${GRAPHVIZ_VERSION}" \
&& rm -rf /var/lib/apt/lists/* \
\
# Add a non-root user
&& useradd app
# Run as non-root user
USER app
# This only works after running `make build-linux`
# or when using goreleaser
COPY dockerfilegraph /
ENTRYPOINT ["/dockerfilegraph"]