2023-10-17 14:37:28 +02:00
|
|
|
FROM alpine:3.18
|
2022-01-31 12:56:07 +01:00
|
|
|
ADD . /hermes
|
|
|
|
WORKDIR /hermes
|
2023-10-17 14:37:28 +02:00
|
|
|
RUN apk add --no-cache perl graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev
|
2022-01-31 12:56:07 +01:00
|
|
|
RUN cmake -B build
|
|
|
|
RUN cmake --build build
|
|
|
|
RUN mkdir /hermes-installation
|
|
|
|
RUN cmake --install build --prefix /hermes-installation
|
|
|
|
|
2023-10-17 14:37:28 +02:00
|
|
|
FROM alpine:3.18
|
2022-01-31 12:56:07 +01:00
|
|
|
EXPOSE 25
|
2023-10-17 14:37:28 +02:00
|
|
|
COPY --from=0 /hermes-installation /hermes
|
|
|
|
RUN apk add --no-cache openssl libspf2 sqlite-libs libstdc++ libgcc
|
|
|
|
CMD ["/hermes/bin/hermes", "/config/hermesrc"]
|