fix: linting
This commit is contained in:
parent
c7f2a0977a
commit
c429ae642b
4 changed files with 9 additions and 9 deletions
|
@ -15,7 +15,7 @@ COPY --from=stagex/make . /
|
|||
COPY --from=stagex/gcc . /
|
||||
|
||||
RUN --network=none tar -xf ${SRC_FILE}
|
||||
WORKDIR c-ares-${VERSION}
|
||||
WORKDIR /c-ares-${VERSION}
|
||||
RUN --network=none <<EOF
|
||||
set -eux
|
||||
./configure \
|
||||
|
|
|
@ -20,7 +20,7 @@ COPY --from=stagex/libtool . /
|
|||
COPY --from=stagex/m4 . /
|
||||
|
||||
RUN --network=none tar -xf ${SRC_FILE}
|
||||
WORKDIR libev-${VERSION}
|
||||
WORKDIR /libev-${VERSION}
|
||||
ENV SOURCE_DATE_EPOCH=1
|
||||
RUN --network=none <<EOF
|
||||
set -eux
|
||||
|
|
|
@ -20,7 +20,7 @@ COPY --from=stagex/libev . /
|
|||
COPY --from=stagex/c-ares . /
|
||||
|
||||
RUN --network=none tar -xf ${SRC_FILE}
|
||||
WORKDIR nghttp2-${VERSION}
|
||||
WORKDIR /nghttp2-${VERSION}
|
||||
RUN --network=none <<EOF
|
||||
set -eux
|
||||
./configure \
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
FROM scratch as base
|
||||
FROM scratch AS base
|
||||
ENV VERSION=22.7.0
|
||||
ENV SRC_HASH=7a7c99282d59866d971b2da12c99596cb15782b9c3efe2e2146390c14f4d490e
|
||||
ENV SRC_FILE=node-v${VERSION}.tar.gz
|
||||
ENV SRC_SITE=https://nodejs.org/dist/v${VERSION}/${SRC_FILE}
|
||||
|
||||
FROM base as fetch
|
||||
FROM base AS fetch
|
||||
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
||||
|
||||
FROM fetch as build
|
||||
FROM fetch AS build
|
||||
COPY --from=stagex/busybox . /
|
||||
COPY --from=stagex/gcc . /
|
||||
COPY --from=stagex/binutils . /
|
||||
|
@ -25,7 +25,7 @@ COPY --from=stagex/brotli . /
|
|||
COPY --from=stagex/c-ares . /
|
||||
COPY --from=stagex/pkgconf . /
|
||||
RUN tar -xf ${SRC_FILE}
|
||||
WORKDIR node-v${VERSION}
|
||||
WORKDIR /node-v${VERSION}
|
||||
ENV SOURCE_DATE_EPOCH=1
|
||||
ENV LDFLAGS=" \
|
||||
-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro \
|
||||
|
@ -58,12 +58,12 @@ RUN --network=none <<-EOF
|
|||
make BUILDTYPE=Release
|
||||
EOF
|
||||
|
||||
FROM build as install
|
||||
FROM build AS install
|
||||
RUN --network=none <<-EOF
|
||||
set -eux
|
||||
make DESTDIR=/rootfs install
|
||||
find /rootfs -exec touch -hcd "@0" "{}" +
|
||||
EOF
|
||||
|
||||
FROM stagex/filesystem as package
|
||||
FROM stagex/filesystem AS package
|
||||
COPY --from=install /rootfs/. /
|
||||
|
|
Loading…
Reference in a new issue