FROM git.matterlinux.xyz/matter/libmp as build RUN apt update RUN apt install -y make gcc gettext libinih-dev libsqlite3-dev libarchive-dev WORKDIR /root COPY ./Makefile ./ COPY ./install ./install COPY ./locale ./locale COPY ./src ./src RUN make RUN make install FROM git.matterlinux.xyz/matter/libmp as main RUN apt update RUN apt install -y dumb-init RUN mkdir -pv /var/lib/pooler # translations COPY --from=build /usr/share/locale/tr/LC_MESSAGES/pooler.mo /usr/share/locale/tr/LC_MESSAGES/pooler.mo # binary and the configuration COPY --from=build /etc/pooler/config.ini /etc/pooler/config.ini COPY --from=build /usr/bin/pooler /usr/bin/pooler RUN useradd runner -r -u 1001 RUN chown -R runner:runner /var/lib/pooler RUN chown -R runner:runner /etc/pooler USER runner ENTRYPOINT ["dumb-init", "/usr/bin/pooler", "/etc/pooler/config.ini"]