Skip to content

Commit

Permalink
add builder
Browse files Browse the repository at this point in the history
  • Loading branch information
huanxiangspace committed Jul 20, 2024
1 parent 4cf2ae3 commit 88ad7b6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker/builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 88ad7b6

Please sign in to comment.