-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
69 lines (52 loc) · 1.57 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright 2019 Qwant Research. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
FROM ubuntu:18.04
LABEL authors="Estelle Maudet, Pierre Jackman, Christophe Servan"
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get -y update && \
apt-get -y install \
curl \
vim
RUN apt-get -y update && \
apt-get -y install \
openjdk-11-jdk \
bash-completion \
golang \
python3-numpy \
python3-scipy \
python3-pip \
libtool \
cmake \
g++ \
libboost-locale1.65-dev \
libboost-regex1.65-dev \
libboost-system1.65-dev \
libboost-thread1.65-dev \
libyaml-cpp-dev \
sudo \
git \
sudo \
automake \
build-essential \
autoconf \
pkg-config \
clang \
libc++-dev \
libssl-dev \
libgflags-dev \
sudo \
libgtest-dev
ADD https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.sh /tmp/cmake-3.13.0-Linux-x86_64.sh
RUN mkdir /opt/cmake
RUN sh /tmp/cmake-3.13.0-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
RUN cmake --version
RUN python3 -m pip install grpcio grpcio-tools
WORKDIR /opt/text-translation
COPY . /opt/text-translation/
RUN bash ./install_grpc.sh
RUN bash ./install.sh
#RUN groupadd -r qnlp && useradd --system -s /bin/bash -g qnlp qnlp
#USER qnlp
#ENTRYPOINT ["/usr/local/bin/text-translation"]