File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
tools/text_processing_deployment Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1616# Dockerfile for C++ (inverse) text normalization backend Sparrowhawk https://github.com/google/sparrowhawk
1717
1818# set base image (host OS)
19- FROM conda/miniconda3
19+ FROM continuumio/miniconda3
20+
2021
2122# set the working directory in the container
2223WORKDIR /workspace
2324
2425# install dependencies
2526RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list
27+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --reinstall build-essential pkg-config git make wget
2628RUN conda install conda-build -y
27- RUN apt-get update && apt-get install -y --reinstall build-essential pkg-config && apt-get upgrade -y && apt-get install -y git && apt-get install make
29+ RUN conda install -c conda-forge thrax=1.3.4 -y
2830RUN git clone https://github.com/google/re2
2931RUN cd re2 && git checkout tags/2022-02-01 && make && make install
30- RUN apt-get install build-essential -y && apt-get install wget -y
3132RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
3233RUN tar xzvf protobuf-2.5.0.tar.gz
3334RUN cd protobuf-2.5.0 && ./configure && make && make install && ldconfig
34- RUN conda install -c conda-forge thrax=1.3.4 -y
35+ RUN printf "# Conda lib path \n /opt/conda/lib" > /etc/ld.so.conf.d/conda.so.conf
36+ ENV CPPFLAGS="-I/opt/conda/include"
37+ ENV LDFLAGS="-L/opt/conda/lib"
3538RUN git clone https://github.com/anand-nv/sparrowhawk.git && cd sparrowhawk && git checkout nemo_tests && apt-get install -y autoconf && bash autoreconf && ./configure && make && make install && ldconfig
3639RUN git clone https://github.com/kward/shunit2.git
37- RUN echo "DONE"
40+ RUN echo "DONE"
You can’t perform that action at this time.
0 commit comments