Skip to content

Commit 000cd18

Browse files
committed
fix docker build
Signed-off-by: Robert Landers <landers.robert@gmail.com>
1 parent 7d6977a commit 000cd18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ENV GOBIN=/usr/local/bin
107107
RUN go get durable_php
108108
#RUN go test ./...
109109

110-
RUN go install --tags nowatcher -ldflags "-w -s -X 'main.version=$VERSION'"
110+
RUN CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go install --tags nowatcher -ldflags "-w -s -X 'main.version=$VERSION'"
111111

112112
FROM common AS durable-php
113113
COPY --from=builder /usr/local/bin/durable_php /usr/local/bin/dphp

0 commit comments

Comments
 (0)