1+ #
2+ # Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
3+ # http://nexb.com and https://github.com/nexB/deltacode/
4+ # The DeltaCode software is licensed under the Apache License version 2.0.
5+ # Data generated with DeltaCode require an acknowledgment.
6+ # DeltaCode is a trademark of nexB Inc.
7+ #
8+ # You may not use this software except in compliance with the License.
9+ # You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
10+ # Unless required by applicable law or agreed to in writing, software distributed
11+ # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12+ # CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+ # specific language governing permissions and limitations under the License.
14+ #
15+ # When you publish or redistribute any data created with DeltaCode or any DeltaCode
16+ # derivative work, you must accompany this data with the following acknowledgment:
17+ #
18+ # Generated with DeltaCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
19+ # OR CONDITIONS OF ANY KIND, either express or implied. No content created from
20+ # DeltaCode should be considered or used as legal advice. Consult an Attorney
21+ # for any legal advice.
22+ # DeltaCode is a free and open source software analysis tool from nexB Inc. and others.
23+ # Visit https://github.com/nexB/deltacode/ for support and download.
24+
25+ FROM python:3.9
26+
27+ # Force unbuffered stdout and stderr (e.g. they are flushed to terminal immediately)
28+ ENV PYTHONUNBUFFERED 1
29+
30+ # Requirements as per https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html
31+ RUN apt-get update \
32+ && apt-get install -y \
33+ && apt-get clean \
34+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
35+
36+ RUN mkdir /opt/deltacode/
37+ COPY . /opt/deltacode/
38+ WORKDIR /opt/deltacode/
39+ RUN ./configure
0 commit comments