Build the membarrier checker using Alpine 3.14.

This commit is contained in:
Jocelyn Le Sage 2022-06-03 09:28:54 -04:00
parent a20625e949
commit 1b36ec0101

View File

@ -5,7 +5,7 @@
# #
# Build the membarrier check tool. # Build the membarrier check tool.
FROM alpine:3.12 FROM alpine:3.14 AS membarrier
WORKDIR /tmp WORKDIR /tmp
COPY membarrier_check.c . COPY membarrier_check.c .
RUN apk --no-cache add build-base linux-headers RUN apk --no-cache add build-base linux-headers
@ -157,7 +157,7 @@ RUN \
# Add files. # Add files.
COPY rootfs/ / COPY rootfs/ /
COPY --from=0 /tmp/membarrier_check /usr/bin/ COPY --from=membarrier /tmp/membarrier_check /usr/bin/
# Set environment variables. # Set environment variables.
ENV APP_NAME="Firefox" ENV APP_NAME="Firefox"