17 lines
No EOL
938 B
Docker
17 lines
No EOL
938 B
Docker
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
|
|
CMD ["/bin/sh"]
|
|
|
|
EXPOSE map[22/tcp:{} 3000/tcp:{}]
|
|
|
|
RUN /bin/sh -c apk --no-cache add bash ca-certificates curl gettext git linux-pam openssh s6 sqlite su-exec gnupg && rm -rf /var/cache/apk/* # buildkit
|
|
|
|
RUN /bin/sh -c addgroup -S -g 1000 git && adduser -S -H -D -h /data/git -s /bin/bash -u 1000 -G git git && echo "git:*" | chpasswd -e # buildkit
|
|
ENV USER=git
|
|
ENV GITEA_CUSTOM=/data/gitea
|
|
VOLUME [/data]
|
|
ENTRYPOINT ["/usr/bin/entrypoint"]
|
|
CMD ["/usr/bin/s6-svscan" "/etc/s6"]
|
|
COPY /tmp/local / # buildkit
|
|
COPY /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea # buildkit
|
|
COPY /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini # buildkit
|
|
COPY /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh # buildkit |