moving ci/cd over to forgejo
This commit is contained in:
parent
0ebdb34601
commit
3c9edb1e0b
13 changed files with 57 additions and 29 deletions
21
Dockerfile
21
Dockerfile
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue