Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 committed Oct 27, 2023
1 parent 3d7bf7e commit aae11f6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion action.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
FROM ghcr.io/zephyrproject-rtos/scancode:v1.0.0
FROM python:3.10

ENV SCANCODE_RELEASE=32.0.8

RUN apt-get update && apt-get install -y bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev

ADD "https://github.com/nexB/scancode-toolkit/archive/refs/tags/v${SCANCODE_RELEASE}.tar.gz" .

RUN mkdir scancode-toolkit && tar xzvf v${SCANCODE_RELEASE}.tar.gz -C scancode-toolkit --strip-components=1

WORKDIR /scancode-toolkit

RUN ./scancode --help

ENV PATH=$HOME/scancode-toolkit:$PATH

RUN pip3 install pyyaml

COPY entrypoint.sh /entrypoint.sh

Expand Down

0 comments on commit aae11f6

Please sign in to comment.