forked from vmware/concord-bft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 1.17 KB
/
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
# 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:18.04
LABEL Description="Build environment for concord-bft"
ENV HOME /root
COPY ./install_deps_release.sh /install_deps_release.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_deps_release.sh" && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
# For eliot-tree's rendering
ENV LC_ALL=C.UTF-8