-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
41 lines (33 loc) · 1.16 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
FROM nvidia/cuda:10.2-base
RUN echo "Europe/Madrid" > /etc/timezone
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt-get update -q --fix-missing && \
apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y install \
python3 \
python3.8 \
python3-dev \
python3.8-dev \
autossh \
gcc \
redis \
virtualenv \
curl \
libreoffice \
libxml2-utils \
tzdata \
cmake \
git \
build-essential \
pkg-config \
libgoogle-perftools-dev && \
apt-get autoremove -y && \
apt-get autoclean
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs && curl -L https://npmjs.org/install.sh | sh
RUN mkdir /opt/mutnmt
COPY . /opt/mutnmt/
RUN /opt/mutnmt/scripts/install.sh
RUN /opt/mutnmt/scripts/minify.sh
CMD ./opt/mutnmt/scripts/docker-entrypoint.sh