Skip to content

Commit 9e3b287

Browse files
Copilotcommjoen
andcommitted
docs: add comments to Dockerfile explaining gcompat and Swift runtime additions
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com> Agent-Logs-Url: https://github.com/OWASP/wrongsecrets/sessions/f5d8b194-44cb-4526-810c-61f4231b6b47
1 parent aac27f1 commit 9e3b287

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ RUN echo "2vars"
3333
RUN echo "$ARG_BASED_PASSWORD"
3434
RUN echo "$argBasedPassword"
3535

36-
RUN apk add --no-cache libstdc++ icu-libs gcompat
36+
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
3839
RUN mkdir -p /usr/lib/swift/linux
3940
COPY --from=swift-runtime /usr/lib/swift/linux/libswiftCore.so /usr/lib/swift/linux/
4041
COPY --from=swift-runtime /usr/lib/swift/linux/libswift_Concurrency.so /usr/lib/swift/linux/

0 commit comments

Comments
 (0)