pooler/Dockerfile
ngn a394df6210
All checks were successful
Build docker image / build (push) Successful in 29s
new: docker workflow
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-28 10:11:38 +03:00

35 lines
867 B
Docker

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"]