forked from vmware/concord-bft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileToolchain
37 lines (30 loc) · 1.31 KB
/
DockerfileToolchain
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
# NOTES:
# 1. The Dockerfile does not have an entry point because everything has to be managed outside of it.
# 2. Please do not install anything directly in this file.
# You need to use "install_deps_release.sh" - we want to keep a possibility to develop w/o docker.
# 3. If a tool or library that you install in the "install_deps_release.sh" is needed only for building 3rd party
# tools/libraries please uninstall them after the script run - we want to keep image' size minimal.
# For example wget and pip-tools.
FROM ubuntu:22.04
ARG GIT_COMMIT
ARG GIT_BRANCH
ARG BUILD_CREATOR
LABEL toolchain.branch=$GIT_BRANCH
LABEL toolchain.commit=$GIT_COMMIT
LABEL toolchain.build-creator=$BUILD_CREATOR
LABEL toolchain.description="Toolchain image for concord-bft"
LABEL toolchain.base="ubuntu:22.04"
ENV HOME /root
COPY ./install_toolchain.sh /install_toolchain.sh
SHELL ["/bin/bash", "-c"]
RUN echo $'path-exclude /usr/share/doc/* \n\
path-exclude /usr/share/doc/*/copyright \n\
path-exclude /usr/share/man/* \n\
path-exclude /usr/share/groff/* \n\
path-exclude /usr/share/info/* \n\
path-exclude /usr/share/lintian/* \n\
path-exclude /usr/share/linda/*' > /etc/dpkg/dpkg.cfg.d/01_nodoc && \
/bin/bash -c "/install_toolchain.sh" && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*