Browse Source

feat: disable cgochecks in Docker images

Kévin Dunglas 1 year ago
parent
commit
0d2104afdf
2 changed files with 4 additions and 0 deletions
  1. 2 0
      Dockerfile
  2. 2 0
      alpine.Dockerfile

+ 2 - 0
Dockerfile

@@ -50,6 +50,8 @@ ENTRYPOINT ["/bin/bash","-c"]
 
 FROM php-base AS runner
 
+ENV GODEBUG=cgocheck=0
+
 COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
 
 WORKDIR /app

+ 2 - 0
alpine.Dockerfile

@@ -49,6 +49,8 @@ ENTRYPOINT ["/bin/sh","-c"]
 
 FROM php-base AS runner
 
+ENV GODEBUG=cgocheck=0
+
 COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
 
 WORKDIR /app