Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions containers/syft_bin/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
FROM python:3.11-slim@sha256:0b106e1d2bf485c2a41474bc9cd5103e9eea4e179f40f10741b53b127059221e as python-3.11-slim
FROM registry.access.redhat.com/ubi8/python-39@sha256:f3cf958b96ce016b63e3e163e488f52e42891304dafef5a0811563f22e3cbad0 as python-3.9-ubi8
FROM python:3.9.16-bullseye@sha256:93fb93c461a2e47a2176706fad1f39eaacd5dd40e19c0b018699a28c03eb2e2a as python-3.9-bullseye
FROM alpine:3.12.3

# install go 1.13, python 3.8, and busybox 1.31
Expand Down Expand Up @@ -47,3 +50,13 @@ RUN mkdir /staged/copy && \
cp "$(which python3.8)" /staged/copy && \
cp /usr/lib/libpython2.7.so.1.0 /staged/copy && \
cp "$(which busybox)" /staged/copy


# Taken from updated syft test fixtures at https://github.com/anchore/syft/blob/main/syft/pkg/cataloger/binary/test-fixtures/Makefile
COPY --from=python-3.11-slim /usr/local/bin/python3.11 /usr/local/bin/python3
COPY --from=python-3.11-slim /usr/local/lib/libpython3.11.so.1.0 /usr/local/lib/libpython3.11.so.1.0

COPY --from=python-3.9-ubi8 /usr/bin/python3.9 /usr/bin/python3.9
COPY --from=python-3.9-ubi8 /usr/lib64/libpython3.9.so.1.0 /usr/lib64/libpython3.9.so.1.0

COPY --from=python-3.9-bullseye /usr/bin/python3.9 /usr/bin/python3.9
2 changes: 0 additions & 2 deletions containers/syft_bin/staged/positive/libpython3.7.so

This file was deleted.

7 changes: 0 additions & 7 deletions containers/syft_bin/staged/positive/patchlevel.h

This file was deleted.

3 changes: 0 additions & 3 deletions containers/syft_bin/staged/positive/python3.6

This file was deleted.