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.

32 lines
1.1 KiB

FROM alpine:3.17.1
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.18.3"
LABEL org.opencontainers.image.url=""
LABEL org.opencontainers.image.authors="Tamás Gérczei <>"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.source=""
LABEL org.opencontainers.image.vendor="Gérczei Tamás"
ADD /etc/apk/keys/
# using a community package re-built locally via apkbuild with MySQL support
RUN apk add --repository --no-cache \
git-lfs=3.2.0-r3 \
openssh-keygen=9.1_p1-r1 \
bash=5.2.15-r0 \
gitea=1.18.3-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"]