Skip to content

Commit cdfcc73

Browse files
Copilotcommjoen
andcommitted
fix: copy entire Swift runtime dir to include libdispatch.so and other transitive deps
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com> Agent-Logs-Url: https://github.com/OWASP/wrongsecrets/sessions/13ef91f3-ab23-4bde-8a53-c97f8ac3677d
1 parent 9e3b287 commit cdfcc73

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ RUN echo "$argBasedPassword"
3535

3636
RUN apk add --no-cache libstdc++ icu-libs gcompat # gcompat provides glibc ELF interpreter compat for glibc-linked Swift binaries
3737

38-
# Copy Swift runtime libraries needed by the wrongsecrets-swift binary
38+
# Copy Swift runtime libraries needed by the wrongsecrets-swift binary (all of /usr/lib/swift/linux/ to include transitive deps)
3939
RUN mkdir -p /usr/lib/swift/linux
40-
COPY --from=swift-runtime /usr/lib/swift/linux/libswiftCore.so /usr/lib/swift/linux/
41-
COPY --from=swift-runtime /usr/lib/swift/linux/libswift_Concurrency.so /usr/lib/swift/linux/
42-
COPY --from=swift-runtime /usr/lib/swift/linux/libswift_StringProcessing.so /usr/lib/swift/linux/
43-
COPY --from=swift-runtime /usr/lib/swift/linux/libswift_RegexParser.so /usr/lib/swift/linux/
40+
COPY --from=swift-runtime /usr/lib/swift/linux/ /usr/lib/swift/linux/
4441

4542
# Create the /var/run/secrets2 directory
4643
RUN mkdir -p /var/run/secrets2

0 commit comments

Comments
 (0)