forked from verilog-to-routing/vtr-verilog-to-routing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (29 loc) · 1001 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
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
# set out workspace
ENV WORKSPACE=/workspace
RUN mkdir -p ${WORKSPACE}
WORKDIR ${WORKSPACE}
COPY . ${WORKSPACE}
# Install and cleanup is done in one command to minimize the build cache size
RUN apt-get update -qq \
# Extract package names from install_apt_packages.sh
&& sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed 's/ \\//g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' \
# Install packages
| xargs apt-get -y install --no-install-recommends \
# Additional packages not listed in install_apt_packages.sh
&& apt-get -y install --no-install-recommends \
wget \
ninja-build \
libeigen3-dev \
libtbb-dev \
python3-pip \
# Install python packages
&& pip install -r requirements.txt \
# Cleanup
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*
# Build VTR
RUN make -j$(nproc) && make install
# Container's default launch command
SHELL ["/bin/bash", "-c"]