Skip to content

Commit

Permalink
Use 'ubuntu:jammy' as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Scherer committed Oct 19, 2023
1 parent f041fcf commit afea95d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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
Expand Down
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"
3 changes: 2 additions & 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 All @@ -23,6 +23,7 @@ function opt() {
echo "--- Downloading and extracting CLI tool ..."
ZIP=$(/dist/download.sh "$VERSION")
unzip -d /dist "$ZIP"
ls /dist
chmod +x /dist/into
echo

Expand Down

0 comments on commit afea95d

Please sign in to comment.