Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@ RUN apt-get update \
# Create directory for scancode sources
WORKDIR /scancode-toolkit

# Copy sources into docker container
COPY . /scancode-toolkit
# Copy only necessary files for configuration first (better layer caching)
COPY configure configure.bat setup.py setup.cfg setup-mini.cfg pyproject.toml MANIFEST.in ./
COPY requirements*.txt ./
COPY src/ ./src/
COPY etc/ ./etc/

# Initial configuration using ./configure, scancode-reindex-licenses to build
# the base license index
RUN ./configure \
&& ./venv/bin/scancode-reindex-licenses

# Copy remaining application files
COPY scancode scancode.bat extractcode extractcode.bat ./
COPY *.rst *.LICENSE *.ABOUT NOTICE ./

# Add scancode to path
ENV PATH=/scancode-toolkit:$PATH

Expand Down