File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) nexB Inc. and others. All rights reserved.
3+ # SPDX-License-Identifier: Apache-2.0
4+ # See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
5+ # See https://github.com/nexB/aboutcode-toolkit for support or download.
6+ # See https://aboutcode.org for more information about nexB OSS projects.
7+ #
8+
9+ FROM python:3.6-slim-buster
10+
11+ RUN apt-get update \
12+ && apt-get install -y bash bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libgomp1 libpopt0\
13+ && apt-get clean \
14+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
15+
16+ # Create directory for aboutcode sources
17+ RUN mkdir aboutcode-toolkit
18+
19+ # Copy sources into docker container
20+ COPY . aboutcode-toolkit
21+
22+ # Set workdir
23+ WORKDIR aboutcode-toolkit
24+
25+ RUN bash -c "source ./configure"
26+
27+ # Add aboutcode to path
28+ # ENV PATH=$HOME/aboutcode-toolkit:$PATH
29+
30+ # Set entrypoint to be the aboutcode command, allows to run the generated docker image directly with the aboutcode arguments:
31+ # `docker run (...) <containername> <about arguments>`
32+ # Example: docker run --rm --name "aboutcode" -v ${PWD}:/project -v /tmp/result:/result aboutcode-toolkit attrib /project /result/c.html
33+ ENTRYPOINT ["./bin/about" ]
You can’t perform that action at this time.
0 commit comments