Skip to content

Commit

Permalink
Merge pull request #5 from into-docker/fix/segfault
Browse files Browse the repository at this point in the history
Fix Segfault on busybox image
  • Loading branch information
xsc authored Oct 19, 2023
2 parents 7ad2cb4 + 1615a96 commit 5743c2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM busybox:glibc
FROM ubuntu:jammy
RUN apt-get update && apt-get install -y curl unzip
RUN mkdir /dist && mkdir -p /var/tmp
COPY download.sh /dist/download.sh
COPY entrypoint.sh /dist/entrypoint.sh

ENV DEFAULT_VERSION="1.1.5"
ENV DEFAULT_VERSION="1.1.7"
ENTRYPOINT [ "/dist/entrypoint.sh" ]
4 changes: 2 additions & 2 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ VERSION="$1"
if [ -z "$VERSION" ]; then VERSION="${DEFAULT_VERSION:-1.0.0}"; fi

FILE="/dist/into-${VERSION}.zip"
URL="https://github.com/into-docker/into-docker/releases/download/v${VERSION}/into-${VERSION}-linux-amd64-static.zip"
wget -O "$FILE" "$URL"
URL="https://github.com/into-docker/into-docker/releases/download/v${VERSION}/into-${VERSION}-linux-amd64.zip"
curl -L "$URL" > "$FILE"

echo "$FILE"
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -l
#!/bin/bash -l

set -eu

Expand Down

0 comments on commit 5743c2f

Please sign in to comment.