Skip to content

Commit

Permalink
Improve Docker configuration
Browse files Browse the repository at this point in the history
- Add directories to .dockerignore
- Replace initial scancode configuration command

Signed-off-by: Daniel Eder <1525711+daniel-eder@users.noreply.github.com>
  • Loading branch information
daniel-eder committed Oct 1, 2020
1 parent 5fcad80 commit 9addc6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .dockerignore
Expand Up @@ -6,4 +6,9 @@ Dockerfile
.git/
.github/
.gitattributes
.gitignore
.gitignore

# Ignore other directories that are not required in the image
tests/
docs/
samples/
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -36,8 +36,8 @@ COPY . scancode-toolkit
# Set workdir
WORKDIR scancode-toolkit

# Run scancode once for configuration
RUN ./scancode --help
# Run scancode once for initial configuration, with --reindex-licenses to create the base license index
RUN ./scancode --reindex-licenses

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

0 comments on commit 9addc6f

Please sign in to comment.