Yeuoly 1 年之前
父節點
當前提交
0d4e3fdf43
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      dev/dockerfile-arm64-github-actions

+ 11 - 0
dev/dockerfile-arm64-github-actions

@@ -1,17 +1,28 @@
 FROM python:3.10-slim
 
+# copy the source code into the container
 COPY . /workdir
 
+# install the necessary dependencies
 RUN apt-get update && apt-get install -y \
     pkg-config gcc libseccomp-dev wget \
     && rm -rf /var/lib/apt/lists/*
 
+# install Go
 RUN wget https://go.dev/dl/go1.20.6.linux-arm64.tar.gz -O /opt/go1.20.6.linux-arm64.tar.gz \
     && tar zxf /opt/go1.20.6.linux-arm64.tar.gz -C /opt \
     && rm /opt/go1.20.6.linux-arm64.tar.gz \
     && ln -s /opt/go/bin/go /usr/local/bin/go
 
+# install the necessary Go dependencies
 RUN cd /workdir && go mod tidy \
     && bash ./build/build_arm64.sh
 
+# install the necessary Python dependencies
 RUN pip install httpx requests jinja2
+
+# Set environment variables
+ENV PYTHON_PATH="/usr/local/bin/python3"
+
+# run tests
+RUN cd /workdir && sudo go test -v github.com/langgenius/dify-sandbox/tests/integration_tests/...