diff options
| author | Adam Janovsky | 2021-05-25 13:42:59 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-05-25 13:42:59 +0200 |
| commit | bff91c62c8fd9dd22e4839b3e95bc225868b53bf (patch) | |
| tree | c7c64ebe8277d47c1e2f8018cb5ef1f2cd53ab56 | |
| parent | ad9ea120e3f357d58804c310205dc3be4990cba0 (diff) | |
| download | sec-certs-bff91c62c8fd9dd22e4839b3e95bc225868b53bf.tar.gz sec-certs-bff91c62c8fd9dd22e4839b3e95bc225868b53bf.tar.zst sec-certs-bff91c62c8fd9dd22e4839b3e95bc225868b53bf.zip | |
delete dockerfile from root repository
| -rw-r--r-- | Dockerfile | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 1c7b0235..00000000 --- a/Dockerfile +++ /dev/null @@ -1,45 +0,0 @@ -FROM ubuntu - -ARG NB_USER -ARG NB_UID -ENV USER ${NB_USER} -ENV HOME /home/${NB_USER} - -RUN adduser --disabled-password \ - --gecos "Default user" \ - --uid ${NB_UID} \ - ${NB_USER} -WORKDIR ${HOME} - -#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 -RUN pip install --no-cache notebook -#just to be sure that pdftotext is in $PATH -ENV PATH /usr/bin/pdftotext:${PATH} - - -# Run the application: -CMD ["python3", "/opt/sec-certs/cc_cli.py"] |
