Skip to content

Commit e8f5023

Browse files
committed
refactor(Dockerfile): do not install packages which are already installed
1 parent 45273a2 commit e8f5023

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

Dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ RUN adduser \
2323
--uid "${UID}" \
2424
"${USER}"
2525

26-
RUN apk add \
27-
--update \
28-
--no-cache \
29-
libunwind-static \
30-
libunwind-dev \
31-
xz-static \
32-
xz-dev
33-
3426
# Install shards for caching
3527
COPY shard.yml .
3628
COPY shard.override.yml .
@@ -59,7 +51,7 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
5951
# Extract binary dependencies
6052
RUN mkdir deps
6153
RUN for binary in /app/bin/*; do \
62-
file "$binary" | grep -q ELF || continue; \
54+
file "$binary" | grep -q "dynamically linked" || continue; \
6355
ldd "$binary" | \
6456
tr -s '[:blank:]' '\n' | \
6557
grep '^/' | \

0 commit comments

Comments
 (0)