Skip to content

Commit 48ca992

Browse files
authored
Update Dockerfile (#254)
Fixes issue with sparrowhawk builds as the original base image is no longer maintained and build breaks Signed-off-by: anand-nv <[email protected]>
1 parent 942b26a commit 48ca992

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tools/text_processing_deployment/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,25 @@
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
2223
WORKDIR /workspace
2324

2425
# install dependencies
2526
RUN 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
2628
RUN 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
2830
RUN git clone https://github.com/google/re2
2931
RUN cd re2 && git checkout tags/2022-02-01 && make && make install
30-
RUN apt-get install build-essential -y && apt-get install wget -y
3132
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
3233
RUN tar xzvf protobuf-2.5.0.tar.gz
3334
RUN 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"
3538
RUN 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
3639
RUN git clone https://github.com/kward/shunit2.git
37-
RUN echo "DONE"
40+
RUN echo "DONE"

0 commit comments

Comments
 (0)