-
Notifications
You must be signed in to change notification settings - Fork 20
/
base.dockerfile
34 lines (27 loc) · 1.27 KB
/
base.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
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y --no-install-recommends meson g++ pkg-config python3-dev libgtest-dev zlib1g-dev python3-pip autoconf automake libtool curl make g++ unzip
RUN curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/protobuf-cpp-3.13.0.tar.gz | tar -xz && \
cd protobuf-3.13.0 && \
./configure && \
make && \
make check && \
make install && \
ldconfig && \
cd .. && \
rm -r protobuf-3.13.0
# Google Cloud TPU VM Alpha: need custom TensorFlow wheel at runtime.
# RUN pip3 install --upgrade pip && \
# pip3 install setuptools && \
# pip3 install toml tensorflow-cpu==2.4.0 cloud-tpu-client
# Install "gsutil"
RUN apt-get install -y --no-install-recommends curl gnupg && \
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
apt-get update -y && \
apt-get install -y --no-install-recommends google-cloud-sdk
RUN pip3 install setuptools toml
COPY . /chesscoach
RUN /chesscoach/build.sh release install && \
rm -r /chesscoach
ENV PYTHONUNBUFFERED=1