From 335fde4f3fc2c70f8ac6761fbd8933398dfdd900 Mon Sep 17 00:00:00 2001 From: mohaijiang Date: Fri, 8 Mar 2024 15:29:19 +0800 Subject: [PATCH] update --- Dockerfile | 16 +++++++++++++--- Dockerfile_base | 2 ++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5d49bb..ec0e989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,17 @@ -FROM docker.io/hamstershare/debian_docker_cli:20231010 -RUN npm install -g truffle +FROM golang:1.20.2 as builder -COPY ./aline-test /usr/local/bin/aline-test +WORKDIR /app + +ENV GO111MODULE on +ENV GOPROXY https://goproxy.cn + +COPY . . + +RUN make linux-test + +FROM docker.io/hamstershare/debian_docker_cli:20240308 + +COPY --from=builder /app/aline-test /usr/local/bin/aline-test ENV PORT=8080 ENV GRPC_PORT=50001 diff --git a/Dockerfile_base b/Dockerfile_base index 7838149..79967cf 100644 --- a/Dockerfile_base +++ b/Dockerfile_base @@ -33,3 +33,5 @@ RUN "$HOME/.cargo/bin/rustup" default stable && \ "$HOME/.cargo/bin/rustup" update nightly && \ "$HOME/.cargo/bin/rustup" target add wasm32-unknown-unknown --toolchain nightly + +RUN npm install -g truffle