hermes/Dockerfile

15 lines
474 B
Docker
Raw Permalink Normal View History

2023-10-17 14:37:28 +02:00
FROM alpine:3.18
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
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
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"]