Skip to content

Commit

Permalink
fix: Fix Dockerfile for secure installation of scanoss package (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Drozdovskyi <[email protected]>
  • Loading branch information
tdrozdovsky committed Dec 19, 2023
1 parent 1b87891 commit bb1405c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ RUN apt-get update && \
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install SCANOSS
RUN pip3 install scanoss --require-hashes
RUN echo "scanoss==1.8.0 --hash=sha256:5d7d3c5dcff799155b72eaf3c88385a5f3e5fbb887afcffed42c9bd87f0b66f3" > requirements.txt
RUN pip3 install --require-hashes --no-deps -r requirements.txt

# Allow to listen port 7896
EXPOSE 7896
Expand Down

0 comments on commit bb1405c

Please sign in to comment.