commit 1edf021aefc2272d810ff61a5ebbe280af488340 Author: Tamás Gérczei Date: Sun Jul 12 10:50:32 2020 +0200 first published version diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..23053de --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +packages/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3cc1012 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM alpine:3.12.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.12.2" +LABEL org.opencontainers.image.url="https://gitea.io" +LABEL org.opencontainers.image.authors="Tamás Gérczei " +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.12 --no-cache \ + git-lfs=2.11.0-r0 \ + openssh-keygen=8.3_p1-r0 \ + bash=5.0.17-r0 \ + gitea=1.12.2-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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f59194 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# gitea-docker-alpine + +A container image of [Gitea](https://gitea.io) for x86_64 architecture based on [Alpine Linux](https://alpinelinux.org) and a custom-built package.