diff options
author | Renken <renken@shione.net> | 2024-05-27 22:32:36 +0200 |
---|---|---|
committer | Renken <renken@shione.net> | 2024-05-27 22:35:48 +0200 |
commit | 44353ca9862475eb35befcc4cca7dfa318935bda (patch) | |
tree | 9c4e4d48f9fe9cccd83d333c5f41f5777d804274 /images/forgejo/Dockerfile | |
parent | a1e2bb5c3a5d16d7b170539f0f0008640f4d1d05 (diff) | |
download | shione-44353ca9862475eb35befcc4cca7dfa318935bda.tar.gz shione-44353ca9862475eb35befcc4cca7dfa318935bda.zip |
feat(containers): self-contained forgejo image
Support for PostgreSQL et al will be added later on.
Diffstat (limited to 'images/forgejo/Dockerfile')
-rw-r--r-- | images/forgejo/Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/images/forgejo/Dockerfile b/images/forgejo/Dockerfile new file mode 100644 index 0000000..614954c --- /dev/null +++ b/images/forgejo/Dockerfile @@ -0,0 +1,13 @@ +# TODO: Add proper metadata. + +FROM debian:bookworm-slim + +COPY app.ini /etc/forgejo/app.ini +COPY secrets/internal_token /etc/forgejo/internal_token +COPY secrets/lfs_jwt_secret /etc/forgejo/lfs_jwt_secret +COPY secrets/oauth2_jwt_secret /etc/forgejo/oauth2_jwt_secret +COPY secrets/secret_key /etc/forgejo/secret_key +COPY setup.sh /tmp/setup.sh +RUN ./tmp/setup.sh +USER git +CMD ["/usr/local/bin/forgejo", "-w", "/var/lib/forgejo", "-c", "/etc/forgejo/app.ini"] |