Skip to content

Commit

Permalink
update devcontainer containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Jan 11, 2025
1 parent 77570ca commit 56540ba
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:latest

RUN apt-get update && apt-get upgrade -y && \
RUN apt-get update && apt-get upgrade -y &&
apt-get install -y \
build-essential \
gnupg2 \
Expand All @@ -9,23 +9,24 @@ RUN apt-get update && apt-get upgrade -y && \
make \
rsync \
curl \
jq \
wget \
git \
vim \
unzip \
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*
unzip &&
apt-get clean all &&
rm -rf /var/lib/apt/lists/*

RUN wget -q https://kcl-lang.io/script/install-cli.sh -O - | bash && \
wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | bash && \
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && \
RUN wget -q https://kcl-lang.io/script/install-cli.sh -O - | bash &&
wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | bash &&
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&
chmod +x /usr/bin/yq

RUN VERSION=$(curl -sL --url "https://golang.org/VERSION?m=text"|grep go) && \
wget -q https://go.dev/dl/${VERSION}.linux-amd64.tar.gz -O /tmp/go.tar.gz && \
tar -C /usr/local -xzf /tmp/go.tar.gz && \
rm /tmp/go.tar.gz && \
RUN VERSION=$(curl -sL --url "https://golang.org/VERSION?m=text" | grep go) &&
wget -q https://go.dev/dl/${VERSION}.linux-amd64.tar.gz -O /tmp/go.tar.gz &&
tar -C /usr/local -xzf /tmp/go.tar.gz &&
rm /tmp/go.tar.gz &&
ln -s /usr/local/go/bin/go /usr/local/bin/go

RUN go install -v -x github.com/lxc/distrobuilder/distrobuilder@latest && \
RUN go install -v -x github.com/lxc/distrobuilder/distrobuilder@latest &&
ln -s /root/go/bin/distrobuilder /usr/local/bin/distrobuilder

0 comments on commit 56540ba

Please sign in to comment.