konos93
(Konos93)
1
can somebody tall me how can i call the files from a folder located here /home/osboxes/Downloads/a/peirama
instead /scantailor.tar.gz
i used this docker_scantailor/Dockerfile.earlyaccess at master · ryanfb/docker_scantailor · GitHub
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y gcc-7 g++-7 cmake libjpeg-dev libpng-dev libtiff5 libtiff5-dev libboost-test1.67-dev libboost-test1.67.0 qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libpthread-stubs0-dev
ENV SCANTAILOR_RELEASE=2019.8.16_EA
ENV CXX=g++-7
RUN mkdir /scantailor-advanced
ADD https://github.com/4lex4/scantailor-advanced/archive/${SCANTAILOR_RELEASE}.tar.gz /scantailor-advanced/scantailor.tar.gz
RUN cd /scantailor-advanced && tar xzvf scantailor.tar.gz
RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE} && mkdir build && cd build && cmake -G "Unix Makefiles" --build .. && make
RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE}/build && make install
VOLUME /data
WORKDIR /data
CMD ["scantailor"]
meyay
(Metin Y.)
2
Can you rephrase this part? I have no idea how the host path fits into all of this.
Note: you can not reference folders outside the build context (=usually the folder where the Dockerfile is location)
konos93
(Konos93)
3
ok as i unterstant i cant call the files from exported folder of scantailor.tar.gz
should scantailor.tar.gz be on the same folder with dockerfile if i dont want to grab it from a link?
will that work
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y gcc-7 g++-7 cmake libjpeg-dev libpng-dev libtiff5 libtiff5-dev libboost-test1.67-dev libboost-test1.67.0 qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libpthread-stubs0-dev
ENV SCANTAILOR_RELEASE=2019.8.16_EA
ENV CXX=g++-7
RUN mkdir /scantailor-advanced
COPY scantailor.tar.gz /scantailor-advanced/
RUN cd /scantailor-advanced && tar xzvf scantailor.tar.gz
RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE} && mkdir build && cd build && cmake -G "Unix Makefiles" --build .. && make
RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE}/build && make install
VOLUME /data
WORKDIR /data
CMD ["scantailor"]
konos93
(Konos93)
4
it worked thanks fro your time
meyay
(Metin Y.)
5
The COPY and ADD instruction can copy files that are either directly in the folder or any subfolder of the build context.