phoo icon indicating copy to clipboard operation
phoo copied to clipboard

Dockerfile recipe for using http2fcgi in Alpine Linux PHP container

Open mpyw opened this issue 5 years ago • 1 comments

This should be written in README, Wiki or somewhere?

FROM golang:1.13 as fcgi_builder

RUN apt update -y \
  && go get -v -ldflags '-w -s' github.com/alash3al/http2fcgi/...

FROM php:7.4-fpm-alpine

# https://stackoverflow.com/questions/34729748/installed-go-binary-not-found-in-path-on-alpine-linux-docker
RUN mkdir /lib64 \
 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

COPY --from=fcgi_builder /go/bin/http2fcgi /bin/http2fcgi

mpyw avatar Mar 15 '20 00:03 mpyw

at first, let me apologize for not reading your issue.

regarding the mentioned dockerfile, you can create a dockerfile that runs any php project and name it php.dockerfile, and anyone else can start FROM it, or just post it in the readme

alash3al avatar Apr 12 '20 05:04 alash3al