hermes/Dockerfile
Juan José Gutiérrez de Quevedo Pérez 6b610aaa84
All checks were successful
continuous-integration/drone Build is passing
Simplify docker setup
2023-10-17 14:37:28 +02:00

15 lines
474 B
Docker

FROM alpine:3.18
ADD . /hermes
WORKDIR /hermes
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
FROM alpine:3.18
EXPOSE 25
COPY --from=0 /hermes-installation /hermes
RUN apk add --no-cache openssl libspf2 sqlite-libs libstdc++ libgcc
CMD ["/hermes/bin/hermes", "/config/hermesrc"]