Skip to content

Commit

Permalink
Merge pull request #40 from bytedance/release-0.5.6
Browse files Browse the repository at this point in the history
fix: Copy libseccomp to multiarch library directory
  • Loading branch information
Danny-Wei authored Mar 1, 2024
2 parents fd28905 + d2a1cbf commit e5159c3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmd/varmor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ FROM debian:10

LABEL maintainer="vArmor authors"

ARG TARGETARCH

# Copy the varmor executable to the image
COPY --from=vArmor-builder /output/ /varmor
# Copy the AppArmor feature ABI file which used during development and testing the VarmorPolicy to the image
Expand All @@ -86,8 +88,15 @@ COPY --from=apparmor-libseccomp-builder /usr/sbin/aa-status /usr/sbin/aa-status
COPY --from=apparmor-libseccomp-builder /usr/lib/libapparmor.* /usr/lib/
COPY --from=apparmor-libseccomp-builder /usr/sbin/aa-remove-unknown /usr/sbin/aa-remove-unknown
COPY --from=apparmor-libseccomp-builder /lib/apparmor/rc.apparmor.functions /lib/apparmor/rc.apparmor.functions
# Copy the libseccomp libraries to the image
COPY --from=apparmor-libseccomp-builder /usr/lib/libseccomp.* /usr/lib/
RUN if [ ${TARGETARCH} = "arm64" ]; then \
rm -f /usr/lib/aarch64-linux-gnu/libseccomp.*; \
cp /usr/lib/libseccomp.* /usr/lib/aarch64-linux-gnu/; \
else \
rm -f /usr/lib/x86_64-linux-gnu/libseccomp.*; \
cp /usr/lib/libseccomp.* /usr/lib/x86_64-linux-gnu/; \
fi

USER 10001:10001
WORKDIR /varmor
ENTRYPOINT ["/vArmor"]

0 comments on commit e5159c3

Please sign in to comment.