فهرست منبع

arm build error fix try

crocandr 2 سال پیش
والد
کامیت
4fdbf02507
2فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 1 2
      .github/workflows/main.yml
  2. 2 3
      Dockerfile

+ 1 - 2
.github/workflows/main.yml

@@ -106,8 +106,7 @@ jobs:
           [ -z "$SOFTETHER_VERSION" ] && { echo "Softether version not defined"; exit 1; }
           echo -e "\n\nDockerfile:\n$( cat Dockerfile )\n\n"
 
-          #docker buildx build --rm --platform linux/arm64 -t croc/softether-arm64 . || { echo "Docker image build fail - ARM64"; exit 1; }
-          docker buildx build --rm --platform linux/arm64 -t croc/softether-arm64 .
+          docker buildx build --rm --platform linux/arm64 -t croc/softether-arm64 . || { echo "Docker image build fail - ARM64"; exit 1; }
           docker images | grep -i softether
           docker tag croc/softether-arm64 croc/softether-arm64:$SOFTETHER_VERSION
       - name: push container

+ 2 - 3
Dockerfile

@@ -1,6 +1,6 @@
 FROM debian:10
 
-RUN apt-get update && \
+RUN apt-get update -y && \
     apt-get install -y curl tar gzip grep make gcc cpp
 
 COPY files/* /opt/
@@ -10,10 +10,9 @@ RUN tar xzfp /opt/softether.tar.gz -C /opt && \
 RUN cd /opt/vpnserver && \
     ls -hal && \
     uname -a && cat /etc/os-release && \
-    #make i_read_and_agree_the_license_agreement
     make
 
-RUN chmod 755 /opt/*.sh
+RUN chmod 755 /opt/start.sh
 
 #ENTRYPOINT /bin/bash
 ENTRYPOINT /opt/start.sh