new: add dockerfile
This commit is contained in:
parent
b8d2d69752
commit
3f794e1a90
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@ -0,0 +1,26 @@
|
||||
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/
|
Loading…
Reference in New Issue
Block a user