-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (24 loc) · 869 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
# Copyright 2019 Qwant Research. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
FROM ubuntu:18.04
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-all-dev
COPY . /opt/tercpp
WORKDIR /opt/tercpp
# RUN bash build-deps.sh fastText \
# qnlp-toolkit \
# pistache \
# json \
# && mkdir -p build/ && cd build \
# && cmake .. && make -j4 && make install \
# && ldconfig
RUN mkdir -p build/ && cd build \
&& cmake .. && make -j4 && make install \
&& ldconfig
# TODO: remove libyaml-cpp-dev
RUN groupadd -r tercpp && useradd --system -s /bin/bash -g tercpp tercpp
USER tercpp