fix: keep hadolint satiated

This commit is contained in:
Daniel Wolf 2024-03-29 13:34:05 -04:00
parent b3c1c56dad
commit 371035ae5a
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 8 additions and 6 deletions

View File

@ -6,19 +6,21 @@ FROM code.nephatrine.net/nephnet/nxb-alpine:latest-golang AS builder
ARG GITEA_VERSION=v1.21.10
RUN git -C /root clone -b "$GITEA_VERSION" --single-branch --depth=1 https://github.com/go-gitea/gitea.git
WORKDIR /root/gitea
ARG TAGS="bindata sqlite sqlite_unlock_notify"
RUN echo "====== COMPILE GITEA FRONTEND ======" \
&& cd /root/gitea && make frontend
RUN echo "====== COMPILE GITEA BACKEND ======" \
&& cd /root/gitea && make backend
RUN make frontend && make backend
# ------------------------------
# hadolint ignore=DL3007
FROM code.nephatrine.net/nephnet/alpine-s6:latest
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
RUN echo "====== INSTALL PACKAGES ======" \
# hadolint ignore=DL3018
RUN usermod -p '*' -s /bin/bash guardian \
&& apk add --no-cache git git-lfs openssh-server openssh-keygen sqlite \
&& usermod -p '*' -s /bin/bash guardian
&& rm -rf /tmp/* /var/tmp/*
COPY --from=builder /root/gitea/gitea /usr/bin/
COPY --from=builder /root/gitea/custom/conf/app.example.ini /etc/gitea.ini.sample