forked from spcl/ncc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inst2vec.Dockerfile
49 lines (39 loc) · 1.39 KB
/
inst2vec.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
# Dockerfile for OCCAM binary
# produces package in /occam/build
# Arguments:
# - UBUNTU: bionic
# - BUILD_TYPE: debug, release
ARG UBUNTU
# Pull base image.
FROM buildpack-deps:$UBUNTU
ARG BUILD_TYPE
RUN echo "Build type set to: $BUILD_TYPE" && \
# Install deps.
apt-get update && \
apt-get install -yqq software-properties-common && \
apt-get update && \
apt-get install -y wget libprotobuf-dev python-protobuf protobuf-compiler && \
apt-get install -y python-pip
RUN pip --version && \
pip install setuptools --upgrade && \
pip install wheel && \
pip install protobuf && \
pip install lit
RUN apt-get install -yqq libboost-dev
RUN mkdir /go
ENV GOPATH "/go"
RUN apt-get -y install golang-go && \
go get github.com/SRI-CSL/gllvm/cmd/...
# Install llvm10 from llvm repo since bionic comes with much older version
WORKDIR /tmp
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 10
ENV LLVM_HOME "/usr/lib/llvm-10"
ENV PATH "$LLVM_HOME/bin:/bin:/usr/bin:/usr/local/bin:/occam/utils/FileCheck_trusty:$GOPATH/bin:$PATH"
WORKDIR /
RUN apt-get install -y python3 python3-pip python3-dev libfreetype* libmysqlclient-dev
RUN pip3 install numpy pandas keras bokeh umap networkx labm8 sklearn jinja2 absl-py tensorflow-gpu tensorflow torch torchvision ast2json uuid alive-progress gym wget werkzeug
RUN mkdir /ncc
COPY ./ /ncc
WORKDIR /ncc