27 lines
624 B
Docker
27 lines
624 B
Docker
FROM ubuntu as build
|
|
|
|
RUN apt update
|
|
RUN apt install -y gcc make gettext libssl-dev libarchive-dev libinih-dev libgpgme-dev libsqlite3-dev
|
|
|
|
WORKDIR /root
|
|
|
|
COPY ./Makefile ./
|
|
COPY ./include ./include
|
|
COPY ./locale ./locale
|
|
COPY ./src ./src
|
|
|
|
RUN make
|
|
RUN make install
|
|
|
|
FROM ubuntu as main
|
|
|
|
RUN apt update
|
|
RUN apt install -y libarchive13 libinih1 libgpgme11 libsqlite3-0
|
|
|
|
# translations
|
|
COPY --from=build /usr/share/locale/tr/LC_MESSAGES/libmp.mo /usr/share/locale/tr/LC_MESSAGES/libmp.mo
|
|
|
|
# headers and the library
|
|
COPY --from=build /usr/include/libmp /usr/include/libmp
|
|
COPY --from=build /usr/lib/libmp.so /usr/lib/
|