30 lines
688 B
Docker
30 lines
688 B
Docker
|
FROM 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 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
|
||
|
|
||
|
ENTRYPOINT ["dumb-init", "/usr/bin/pooler", "/etc/pooler/config.ini"]
|