-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (14 loc) · 763 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (14 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ARG FORGEJO_VERSION=1.21.11-0
FROM codeberg.org/forgejo/forgejo:${FORGEJO_VERSION}
# Install dependencies for Vault integration (needs root)
USER root
RUN apk add --no-cache wget jq
# Copy init and bootstrap scripts (AppRole version)
COPY scripts/init-approle.sh /usr/local/bin/forgejo-init.sh
COPY scripts/forgejo-bootstrap.sh /usr/local/bin/forgejo-bootstrap.sh
RUN chmod +x /usr/local/bin/forgejo-init.sh /usr/local/bin/forgejo-bootstrap.sh
# Note: We don't set USER here - the original entrypoint handles user switching via s6-overlay
# This allows s6-overlay to properly initialize as root before dropping privileges
# Use init script as entrypoint (AppRole authentication)
ENTRYPOINT ["/usr/local/bin/forgejo-init.sh"]
CMD ["/bin/s6-svscan", "/etc/s6"]