moving ci/cd over to forgejo

This commit is contained in:
Nicholas Orlowsky 2025-02-04 13:26:54 -05:00
parent 0ebdb34601
commit 3c9edb1e0b
Signed by: nickorlow
GPG key ID: 838827D8C4611687
13 changed files with 57 additions and 29 deletions

View file

@ -1,14 +1,21 @@
FROM alpine as build-env
RUN apk add --no-cache build-base python3 cmake
COPY ./src/ .
RUN rm -rf CMakeCache.txt CMakeFiles
RUN cmake -DCMAKE_BUILD_TYPE=Release .
COPY ./src ./src
COPY ./lib ./lib
COPY ./default_www ./default_www
COPY ./build_supp ./build_supp
COPY ./CMakeLists.txt .
RUN mkdir build
WORKDIR build
RUN cmake -DCMAKE_BUILD_TYPE=Release ..
RUN make anthracite-bin
FROM alpine
RUN apk add --no-cache build-base
COPY --from=build-env /anthracite /anthracite
COPY --from=build-env /www /www
COPY --from=build-env /error_pages /error_pages
RUN apk add --no-cache libgcc libstdc++
COPY --from=build-env /build/anthracite-bin /anthracite-bin
COPY --from=build-env /build/error_pages /error_pages
COPY /default_www/docker /www
CMD ["/anthracite-bin"]