From 88ad7b6c3e2a023db26124c8d1db1d692b2010eb Mon Sep 17 00:00:00 2001 From: HuanXiang Date: Sat, 20 Jul 2024 22:56:21 +0800 Subject: [PATCH] add builder --- docker/builder.Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docker/builder.Dockerfile diff --git a/docker/builder.Dockerfile b/docker/builder.Dockerfile new file mode 100644 index 0000000..aa0f053 --- /dev/null +++ b/docker/builder.Dockerfile @@ -0,0 +1,31 @@ +FROM ubuntu:22.04 + +ARG ARCH=amd64 + +RUN apt-get update && apt-get install -y \ + curl \ + gnupg \ + lsb-release \ + ca-certificates \ + build-essential \ + git \ + libmagickwand-dev + +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ + && apt-get install -y nodejs + +RUN ARCH=$(dpkg --print-architecture) \ + && echo "ARCH: ${ARCH}" + +RUN ARCH=$(dpkg --print-architecture) \ + && curl -fsSL https://go.dev/dl/go1.22.5.linux-${ARCH}.tar.gz | tar -C /usr/local -xzf - + +RUN ARCH=$(dpkg --print-architecture) \ + && curl -fsSL https://github.com/iconLake/ignite-cli/releases/download/v0.27.3/ignite_0.27.3_linux_${ARCH}.tar.gz | tar -C /usr/local/bin -xzf - + +ENV PATH="/usr/local/go/bin:${PATH}" +ENV GOPATH="/go" + +WORKDIR /app + +CMD ["bash"]