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.

27 lines
699 B

2 years ago
FROM as builder
ARG TAGS="bindata"
RUN echo "deb buster-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends -t buster-backports \
golang git nodejs npm make build-essential
RUN git clone /gitea
WORKDIR /gitea
RUN make clean-all build
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl gettext git
VOLUME ["/data"]
ENTRYPOINT ["/app/gitea/gitea"]
COPY --from=builder /gitea/gitea /app/gitea/gitea
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea