I am using golang:1.21-alpine3.20 to generate my DLL. using following command
go build -o project.dll -buildmode=c-shared ./cmd/main.go
Using Php code to trigger dll using FFI plugin please find Dockerimage details below
php:8.4-cli-alpine3.20
RUN apk add --no-cache \
openssl \
bash \
curl \
wget \
icu-dev \
libffi-dev \
gcc \
musl-dev \
ca-certificates \
supervisor \
&& docker-php-ext-install -j$(nproc) mysqli intl ffi \
&& rm -rf /var/cache/apk/*
# Install glibc compatibility layer
RUN wget -qO /etc/apk/keys/sgerrand.rsa.pub .rsa.pub && \
wget .35-r1.apk && \
apk add --allow-untrusted glibc-2.35-r1.apk
Error : "Failed loading '/htdocs/app/Libraries/../../project.dll' (Error relocating /htdocs/app/Libraries/../../project.dll: runtime.tlsg: initial-exec TLS resolves to dynamic definition in /htdocs/app/Libraries/../../project.dll)"