From 30ed0b5851b3b28924015bd8f917717c13451a0f Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 1 Jan 2024 03:38:10 +0100 Subject: Created ubuntu-18.04-go image --- ubuntu-18.04-go/Dockerfile | 5 +++++ ubuntu-18.04-go/setup.sh | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ubuntu-18.04-go/Dockerfile create mode 100755 ubuntu-18.04-go/setup.sh diff --git a/ubuntu-18.04-go/Dockerfile b/ubuntu-18.04-go/Dockerfile new file mode 100644 index 0000000..30810c1 --- /dev/null +++ b/ubuntu-18.04-go/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:18.04 +ADD setup.sh /root/ +RUN /root/setup.sh +ENV PATH=$PATH:/usr/local/go/bin +WORKDIR /build diff --git a/ubuntu-18.04-go/setup.sh b/ubuntu-18.04-go/setup.sh new file mode 100755 index 0000000..3cfd1d4 --- /dev/null +++ b/ubuntu-18.04-go/setup.sh @@ -0,0 +1,13 @@ +#!/bin/sh -e +apt-get update +apt-get upgrade +apt-get install -y curl +cd /root +curl -L "https://go.dev/dl/go1.21.5.linux-amd64.tar.gz" -o go.tar.gz +cd /usr/local +tar xf /root/go.tar.gz +rm -f /root/go.tar.gz +apt-get remove --purge -y curl +apt-get autoremove --purge -y +apt-get clean +rm -rf /var/lib/apt/lists/* -- cgit v1.1