File tree 1 file changed +11
-17
lines changed
1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu:20.04
2
+ ARG DEBIAN_FRONTEND=noninteractive
2
3
# set out workspace
3
4
ENV WORKSPACE=/workspace
4
5
RUN mkdir -p ${WORKSPACE}
5
- VOLUME ${WORKSPACE}
6
6
WORKDIR ${WORKSPACE}
7
- # Set environment variables
8
- ARG GIT_SSL_NO_VERIFY=1
9
- ARG DEBIAN_FRONTEND=noninteractive
7
+ COPY . ${WORKSPACE}
10
8
# Install and cleanup is done in one command to minimize the build cache size
11
9
RUN apt-get update -qq \
12
- && apt-get -y install --no-install-recommends \
10
+ # Extract package names from install_apt_packages.sh
11
+ && sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed 's/ \\ //g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' \
12
+ # Install packages
13
+ | xargs apt-get -y install --no-install-recommends \
13
14
# Additional packages not listed in install_apt_packages.sh
15
+ && apt-get -y install --no-install-recommends \
14
16
wget \
15
- git \
16
17
ninja-build \
17
18
libeigen3-dev \
18
19
libtbb-dev \
19
20
python3-pip \
20
- # Clone VTR repo
21
- && git clone https://github.com/verilog-to-routing/vtr-verilog-to-routing.git . \
22
- # Extract package names from install_apt_packages.sh
23
- && sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed 's/ \\ //g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' \
24
- # Install packages
25
- | xargs apt-get -y install --no-install-recommends \
21
+ # Install python packages
22
+ && pip install -r requirements.txt \
26
23
# Cleanup
27
24
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
28
25
&& rm -rf /var/lib/apt/lists/*
29
- # Install python packages
30
- RUN pip install -r requirements.txt
31
26
# Build VTR
32
- RUN make \
33
- && make install
27
+ RUN make && make install
34
28
# Container's default launch command
35
- CMD [ "/bin/bash" ]
29
+ SHELL [ "/bin/bash" , "-c" ]
You can’t perform that action at this time.
0 commit comments