forked from getprobo/probo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 1.01 KB
/
Copy pathDockerfile
File metadata and controls
29 lines (23 loc) · 1.01 KB
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
# ubuntu:24.04 - pinned to digest for reproducibility (2026-02-05)
ARG BASE_IMAGE=ubuntu:24.04@sha256:c4a8d5503dfb2a3eb8ab5f807da5bc69a85730fb49b5cfca2330194ebcc41c7b
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.source="https://github.com/getprobo/probo"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.vendor="Probo Inc"
RUN useradd -m probo && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y ca-certificates libcap2-bin && \
rm -rf /var/lib/apt/lists/*
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/probod /usr/local/bin/probod
COPY $TARGETPLATFORM/probod-bootstrap /usr/local/bin/probod-bootstrap
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/probod && \
chmod +x /usr/local/bin/probod-bootstrap && \
chmod +x /usr/local/bin/entrypoint.sh && \
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/probod && \
mkdir -p /etc/probod && \
chown probo:probo /etc/probod
USER probo
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]