2023-09-06 20:44:29 +00:00
|
|
|
FROM alpine as build-env
|
|
|
|
|
2024-05-10 11:09:40 +00:00
|
|
|
RUN apk add --no-cache build-base python3 cmake
|
2023-10-16 18:36:17 +00:00
|
|
|
COPY ./src/ .
|
2024-05-10 11:09:40 +00:00
|
|
|
RUN rm -rf CMakeCache.txt CMakeFiles
|
|
|
|
RUN cmake -DCMAKE_BUILD_TYPE=Release .
|
|
|
|
RUN make anthracite-bin
|
2023-09-06 20:44:29 +00:00
|
|
|
|
2023-10-17 17:16:31 +00:00
|
|
|
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
|
2024-05-10 11:33:40 +00:00
|
|
|
CMD ["/anthracite-bin"]
|