-
Notifications
You must be signed in to change notification settings - Fork 13
/
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-20250225@sha256:b23ab405b8f2f752d5a1e441d636c6130ce95ae34a2e5acfeb0f193895719c50
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"]