/
Dockerfile
52 lines (42 loc) · 1.58 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
FROM $DOCKER_IMAGE_PARENT
LABEL maintainer="Mozilla Release Engineering <release+docker@mozilla.com>"
RUN apt-get update -qq \
# We need to install tzdata before all of the other packages. Otherwise it will show an interactive dialog that
# we cannot navigate while building the Docker image.
&& apt-get install -y tzdata \
&& apt-get install -y wget \
curl \
zip \
build-essential \
gcc \
g++ \
make \
cmake \
libboost-dev \
libboost-all-dev \
zstd \
tar \
libxml2 \
libhunspell-dev \
bc \
autoconf \
automake \
autopoint \
libtool \
&& apt-get clean
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | apt-key add -
COPY intel-mkl.list /etc/apt/sources.list.d/intel-mkl.list
RUN apt-get update -qq \
&& apt-get install -y intel-mkl-64bit-2020.0-088 \
&& apt-get clean
RUN locale-gen "$LANG"
RUN pip install zstandard
# Required to download sacrebleu datasets
RUN pip install sacrebleu mtdata
# %include-run-task
ENV SHELL=/bin/bash \
HOME=/builds/worker \
PATH="/builds/worker/.local/bin:$PATH"
VOLUME /builds/worker/checkouts
VOLUME /builds/worker/.cache
USER root