-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
42 lines (31 loc) · 989 Bytes
/
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
# 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, Noël Martin, 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 \
cmake \
g++ \
libboost-locale1.65-dev \
libboost-regex1.65-dev \
libyaml-cpp-dev \
git \
cmake \
build-essential \
autoconf \
libtool \
pkg-config\
clang \
libc++-dev \
golang \
libssl-dev \
libgflags-dev \
libgtest-dev
COPY . /opt/text-classifier
WORKDIR /opt/text-classifier
RUN bash ./install.sh
RUN groupadd -r qnlp && useradd --system -s /bin/bash -g qnlp qnlp
USER qnlp
ENTRYPOINT ["/usr/local/bin/text-classifier"]