Skip to content

Commit 6c31d98

Browse files
committed
test: distroless
1 parent 596a7ac commit 6c31d98

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

file.dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
ARG BUILD_ROOT=/file-${APP_VERSION} \
1212
BUILD_SRC=https://astron.com/pub/file/${BUILD_TAR}
1313

14-
# :: FOREIGN IMAGES
15-
FROM 11notes/util:bin AS util-bin
16-
1714

1815
# ╔═════════════════════════════════════════════════════╗
1916
# ║ BUILD ║
@@ -68,7 +65,8 @@
6865
make install;
6966

7067
RUN set -ex; \
71-
eleven distroless ${BUILD_BIN};
68+
mkdir -p ${APP_ROOT}/usr/local/bin; \
69+
cp ${BUILD_BIN} ${APP_ROOT}/usr/local/bin;
7270

7371
RUN set -ex; \
7472
mkdir -p ${APP_ROOT}/usr/local/share/misc; \

strip.dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
BUILD_SRC=https://ftp.gnu.org/gnu/binutils/${BUILD_TAR} \
1212
GPG_KEY=13FCEF89DD9E3C4F
1313

14-
# :: FOREIGN IMAGES
15-
FROM 11notes/util:bin AS util-bin
1614

1715
# ╔═════════════════════════════════════════════════════╗
1816
# ║ BUILD ║
@@ -61,7 +59,8 @@
6159
make install;
6260

6361
RUN set -ex; \
64-
eleven distroless ${BUILD_BIN};
62+
mkdir -p ${APP_ROOT}/usr/local/bin; \
63+
cp ${BUILD_BIN} ${APP_ROOT}/usr/local/bin;
6564

6665

6766
# ╔═════════════════════════════════════════════════════╗

upx.dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
BUILD_SRC=https://github.com/upx/upx.git
99
ARG BUILD_BIN=${BUILD_ROOT}/build/upx
1010

11-
# :: FOREIGN IMAGES
12-
FROM 11notes/util:bin AS util-bin
13-
1411

1512
# ╔═════════════════════════════════════════════════════╗
1613
# ║ BUILD ║
@@ -58,7 +55,8 @@
5855
cmake --build build 2>&1 > /dev/null;
5956

6057
RUN set -ex; \
61-
eleven distroless ${BUILD_BIN};
58+
mkdir -p ${APP_ROOT}/usr/local/bin; \
59+
cp ${BUILD_BIN} ${APP_ROOT}/usr/local/bin;
6260

6361

6462
# ╔═════════════════════════════════════════════════════╗

0 commit comments

Comments
 (0)