blob: 9255b823c51800bd6b4c0b59eb434ded06af72ba [file] [edit]
FROM gpac/ubuntu-deps:latest
WORKDIR /gpac
# get code
COPY . gpac_public
# get manually built dependencies to the main folder
RUN bash -c "[[ -e /gpac-deps/gpac_public/extra_lib ]] && cp -av /gpac-deps/gpac_public/extra_lib/* /gpac/gpac_public/extra_lib/ && rm -rf /gpac-deps/gpac_public/extra_lib/*"
WORKDIR /gpac/gpac_public
# static build
RUN make distclean && ./configure --static-bin && make -j
RUN rm -rf /gpac/binaries && mkdir -p /gpac/binaries && cp -vf bin/gcc/* /gpac/binaries/ || true
# deb package
RUN rm -f *.deb && make distclean && make deb
RUN mv -v *.deb /gpac/binaries/
#install
RUN dpkg -i /gpac/binaries/*.deb
#cleanup GH temp token
RUN sed -i -e 's/.*extraheader = AUTHORIZATION.*//' .git/config
CMD ["gpac"]