new: docker workflow
All checks were successful
Build docker image / build (push) Successful in 29s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-28 10:11:38 +03:00
parent 7cc249aac6
commit a394df6210
3 changed files with 43 additions and 11 deletions

View File

@ -1,4 +1,4 @@
FROM libmp as build
FROM git.matterlinux.xyz/matter/libmp as build
RUN apt update
RUN apt install -y make gcc gettext libinih-dev libsqlite3-dev libarchive-dev
@ -13,7 +13,7 @@ COPY ./src ./src
RUN make
RUN make install
FROM libmp as main
FROM git.matterlinux.xyz/matter/libmp as main
RUN apt update
RUN apt install -y dumb-init
@ -26,4 +26,9 @@ COPY --from=build /usr/share/locale/tr/LC_MESSAGES/pooler.mo /usr/share/locale/t
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"]