diff options
| author | Stanislav Boboň | 2021-05-11 17:47:48 +0200 |
|---|---|---|
| committer | Stanislav Boboň | 2021-05-11 17:47:48 +0200 |
| commit | ffafebbabcd0aac1deba8dca7cd4c13b0cbbb031 (patch) | |
| tree | 7fcbc40b34b86ee13daec326dde99811fc5e8d21 /Dockerfile | |
| parent | 6c68b465bc592b517c4ebdfacbd977502647cbdb (diff) | |
| parent | e3c002a63725e9e79ce81a09a7c7055c61ba5010 (diff) | |
| download | sec-certs-ffafebbabcd0aac1deba8dca7cd4c13b0cbbb031.tar.gz sec-certs-ffafebbabcd0aac1deba8dca7cd4c13b0cbbb031.tar.zst sec-certs-ffafebbabcd0aac1deba8dca7cd4c13b0cbbb031.zip | |
Merge branch 'dev' into fips
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..e891e9a5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu + +#installing dependencies +RUN apt-get update +RUN apt-get install python3 -y +RUN apt-get install python3-pip -y +RUN apt-get install python3-venv -y +RUN apt-get install git -y +#------installing the needed thing for PyPDF2 and pdftotext------------------------------------- +RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata +RUN apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev poppler-utils -y +RUN apt-get install libqpdf-dev -y +RUN apt-get install pkg-config -y +#----------------------------------------------------------------------------------------------- + + +RUN git clone https://github.com/crocs-muni/sec-certs.git /opt/sec-certs + +#creating the venv in a way that works, the activation script doesn't work in Docker, we do manualy what it does +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m venv $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +# Install dependencies: +RUN cp /opt/sec-certs/requirements.txt . +RUN pip install wheel +RUN pip install -r requirements.txt +#just to be sure that pdftotext is in $PATH +ENV PATH /usr/bin/pdftotext:${PATH} + + +# Run the application: +CMD ["python3", "/opt/sec-certs/examples/cc_oop_demo.py"] |
