1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
pdf2htmlEX/buildScripts/createDockerImage
2019-11-28 14:07:07 +00:00

40 lines
690 B
Bash
Executable File

#!/bin/bash
# This bash script creates a docker image from an existing pdf2htmlEX
if [ -x "$(which docker)" ]; then
source buildScripts/reSourceVersionEnvs
source buildScripts/dockerFunctions
mkdir -p imageBuild/dockerDir
cd pdf2htmlEX/build
sudo rm -rf install_manifest.txt
make install DESTDIR=../../imageBuild/dockerDir
cd ../../imageBuild/dockerDir
copy_deps
delete_blacklisted
cat > Dockerfile <<DOCKERFILE_HERE_DOC
FROM $DOCKER_FROM
COPY ./ /
RUN ldconfig
ENTRYPOINT ["/usr/local/bin/pdf2htmlEX"]
DOCKERFILE_HERE_DOC
cd ..
docker build -t $DOCKER_NAME dockerDir
else
echo "Docker is not installed... skipping creation of a docker image."
fi