Skip to content

Commit 3968055

Browse files
committed
fix: TAG_PLATFORM split error and copy bundle folder
1 parent d3a011b commit 3968055

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ ARG LIB_CRYPT_PATH
1111
ARG LIB_GCC_PATH
1212
ARG LD_LIB_PATH
1313

14-
COPY --from=builder /usr/local/bin/ruby /usr/local/bin/ruby
1514
COPY --from=builder /usr/local/lib/libruby.so.${RUBY_MAJOR_MINOR} /usr/local/lib/libruby.so.${RUBY_MAJOR_MINOR}
15+
COPY --from=builder /usr/local/bin/ruby /usr/local/bin/ruby
1616
COPY --from=builder /usr/local/lib/ruby /usr/local/lib/ruby
17+
COPY --from=builder /usr/local/bin/bundle /usr/local/bin/bundle
1718

1819
COPY --from=builder ${LIB_Z_PATH} ${LIB_Z_PATH}
1920
COPY --from=builder ${LIB_GMP_PATH} ${LIB_GMP_PATH}

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ for ver in "${ruby_versions[@]}"; do
3535
else
3636
extra_args="--load"
3737
fi
38-
TAG_PLATFORM=$(echo "${platform}" | tr '/' '-')
38+
TAG_PLATFORM=${platform#*/}
3939
docker buildx build \
4040
--platform "${platform}" \
4141
--build-arg RUBY_VERSION="${RUBY_VERSION}" \

0 commit comments

Comments
 (0)