A container image of Gitea for x86_64 architecture based on Alpine Linux and a custom-built package.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
FROM alpine:3.16.0 |
|
|
|
ARG BUILD_DATE |
|
|
|
LABEL org.opencontainers.image.title="Gitea - Git with a cup of tea" |
|
LABEL org.opencontainers.image.description="A painless self-hosted Git service." |
|
LABEL org.opencontainers.image.version="1.16.8" |
|
LABEL org.opencontainers.image.url="https://gitea.io" |
|
LABEL org.opencontainers.image.authors="Tamás Gérczei <tamas@gerczei.eu>" |
|
LABEL org.opencontainers.image.created="${BUILD_DATE}" |
|
LABEL org.opencontainers.image.source="https://git.gerczei.eu/tgerczei/gitea-alpine" |
|
LABEL org.opencontainers.image.vendor="Gérczei Tamás E.V." |
|
|
|
ADD https://www.gerczei.eu/files/tamas@gerczei.eu-5ec0fe1e.rsa.pub /etc/apk/keys/ |
|
|
|
# using a community package re-built locally via apkbuild with MySQL support |
|
RUN apk add --repository https://www.gerczei.eu/packages/alpine/v3.16 --no-cache \ |
|
git-lfs=3.1.4-r1 \ |
|
openssh-keygen=9.0_p1-r1 \ |
|
bash=5.1.16-r2 \ |
|
gitea=1.16.8-r0 && \ |
|
mkdir /var/cache/gitea && \ |
|
chown gitea:www-data /var/cache/gitea |
|
|
|
EXPOSE 22 3000 |
|
|
|
USER gitea:www-data |
|
|
|
ENTRYPOINT ["/usr/bin/gitea"] |
|
|
|
CMD ["web", "-c", "/etc/gitea/conf/app.ini"]
|
|
|