Update Containerfile
This commit is contained in:
parent
eb4e46c544
commit
0ae86374b0
1 changed files with 0 additions and 0 deletions
20
Dockerfile
20
Dockerfile
|
@ -1,20 +0,0 @@
|
|||
FROM dunglas/frankenphp:builder AS builder
|
||||
|
||||
COPY --from=caddy:builder /usr/bin/xcaddy /usr/bin/xcaddy
|
||||
|
||||
RUN CGO_ENABLED=1 \
|
||||
XCADDY_SETCAP=1 \
|
||||
XCADDY_GO_BUILD_FLAGS="-ldflags='-w -s' -tags=nobadger,nomysql,nopgx" \
|
||||
CGO_CFLAGS=$(php-config --includes) \
|
||||
CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" \
|
||||
xcaddy build \
|
||||
--output /usr/local/bin/frankenphp \
|
||||
--with github.com/dunglas/frankenphp=./ \
|
||||
--with github.com/dunglas/frankenphp/caddy=./caddy/ #$XCADDY_APPS
|
||||
|
||||
FROM dunglas/frankenphp AS runner
|
||||
|
||||
COPY --from=builder /usr/local/bin/frankenphp /usr/local/bin/frankenphp
|
||||
RUN ln -s /usr/local/bin/frankenphp /usr/local/bin/caddy
|
||||
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
Loading…
Add table
Add a link
Reference in a new issue