blob: fdaf1086e4cc5aee78a9082626da6b6047c6ae21 (
plain)
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
|
FROM licensefinder/license_finder:6.0.0
ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin"
ENV LM_HOME=/opt/license-management
ENV LM_PYTHON_VERSION 3
ENV LM_REPORT_VERSION ${LM_REPORT_VERSION:-2}
RUN npm install npm-install-peers
# Don't let Rubygem fail with the numerous projects using PG or MySQL,
# install realpath, includes for python3, and pip for python3
# Install additional php packages for better composer package support
RUN add-apt-repository ppa:ondrej/php -y && apt-get update -y && \
apt-get upgrade -y --no-install-recommends && \
apt-get install -y --no-install-recommends \
bsdmainutils \
libjpeg8-dev \
zlib1g-dev \
libpq-dev libmysqlclient-dev realpath \
php7.1-mbstring php7.1-intl php7.1-xml php7.1-soap -y && \
git clone --depth 1 --branch v0.7.6 https://github.com/asdf-vm/asdf.git $HOME/.asdf && \
echo 'pip' >> $HOME/.default-python-packages && \
echo 'setuptools' >> $HOME/.default-python-packages && \
echo '\n. $HOME/.asdf/asdf.sh' >> $HOME/.bashrc && \
asdf plugin-add python && \
echo 'python 3.8.1 3.5.9 2.7.17' >> $HOME/.tool-versions && \
asdf install && \
asdf global python 3.8.1 && \
asdf reshim && \
rm -rf /var/lib/apt/lists/*
COPY config/NuGet /root/.config/NuGet
COPY config/gradle /root/.gradle
COPY test /test
COPY run.sh /
COPY . /opt/license-management/
RUN bash -lc "cd /opt/license-management && gem build *.gemspec && gem install *.gem"
ENTRYPOINT ["/run.sh"]
|