10 lines
691 B
Docker
10 lines
691 B
Docker
# syntax=docker/dockerfile:1
|
|
# Forgejo (rootless, uid 1000 like the host's `ubuntu`, owner of /srv/git) plus what the hydrate job
|
|
# needs: fnox for the admin password, the declared SSH keys, the script.
|
|
FROM codeberg.org/forgejo/forgejo:17.0.1-rootless@sha256:5ef02fbcf22beef56b8c844952ffad58cfe177b6f98e46e6abb5df90b88dc8d3
|
|
USER root
|
|
ADD --checksum=sha256:3d221a6439957f3e425410a4614a45ec02b278e9c20d5838eb7d6d3b3748ac19 \
|
|
https://github.com/jdx/fnox/releases/download/v1.43.0/fnox-x86_64-unknown-linux-musl.tar.gz /tmp/fnox.tgz
|
|
RUN tar xzf /tmp/fnox.tgz -C /usr/local/bin fnox && rm /tmp/fnox.tgz && fnox --version
|
|
COPY fnox.toml authorized_keys hydrate.sh robots.txt /hydrate/
|
|
USER git
|