From 0a93e5f564e887f025dfe70fc947295ac9322c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E5=BE=B7=E5=BD=AC?= Date: Fri, 20 Dec 2024 15:58:28 +0800 Subject: [PATCH] fix build agent and task command run for image booting --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fe1b899..eaa46f21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,15 +24,21 @@ RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommend python3-dev \ jq vim \ ca-certificates \ + gcc \ && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* WORKDIR /app -COPY --from=builder /app/agents/.release/ agents/ +COPY --from=builder /app/agents/ agents/ COPY --from=builder /app/server/bin/api /app/server/bin/api COPY --from=builder /usr/local/lib /usr/local/lib COPY --from=builder /usr/lib/python3 /usr/lib/python3 +COPY --from=builder /usr/local/bin/ /usr/local/bin/ +COPY --from=builder /usr/local/ten_gn/ /usr/local/ten_gn/ +COPY --from=builder /usr/local/go/ /usr/local/go/ -EXPOSE 8080 +ENV PATH=/usr/local/go/bin:/usr/local/ten_gn:$PATH + +ENV CGO_ENABLED=1 -ENTRYPOINT ["/app/server/bin/api"] +EXPOSE 8080