Explorar o código

Update Dockerfile

script for M1
Игорь Данилов %!s(int64=2) %!d(string=hai) anos
pai
achega
db1b30ecf2
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      apache2/Dockerfile

+ 10 - 1
apache2/Dockerfile

@@ -29,4 +29,13 @@ ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
 
 CMD ["/bin/bash", "/opt/startup.sh"]
 
-EXPOSE 80 443
+EXPOSE 80 443
+
+ARG APACHE_FOR_MAC_M1=false
+
+RUN if [ ${APACHE_FOR_MAC_M1} = true ]; then \
+    # Change application source from deb.debian.org to aliyun source
+    wget -O "/usr/local/bin/go-replace" "https://github.com/webdevops/goreplace/releases/download/1.1.2/gr-arm64-linux" && \
+    chmod +x "/usr/local/bin/go-replace" && \
+    "/usr/local/bin/go-replace" --version \
+;fi