chore: remove build args
This commit is contained in:
parent
9e5544753c
commit
4c16f6827d
13
Dockerfile
13
Dockerfile
@ -4,12 +4,8 @@
|
|||||||
# https://docs.docker.com/develop/develop-images/multistage-build/#stop-at-a-specific-build-stage
|
# https://docs.docker.com/develop/develop-images/multistage-build/#stop-at-a-specific-build-stage
|
||||||
# https://docs.docker.com/compose/compose-file/#target
|
# https://docs.docker.com/compose/compose-file/#target
|
||||||
|
|
||||||
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
|
|
||||||
ARG PHP_VERSION=8.1
|
|
||||||
ARG CADDY_VERSION=2
|
|
||||||
|
|
||||||
# Prod image
|
# Prod image
|
||||||
FROM php:${PHP_VERSION}-fpm-alpine AS app_php
|
FROM php:8.1-fpm-alpine AS app_php
|
||||||
|
|
||||||
# Allow to use development versions of Symfony
|
# Allow to use development versions of Symfony
|
||||||
ARG STABILITY="stable"
|
ARG STABILITY="stable"
|
||||||
@ -24,8 +20,7 @@ ENV APP_ENV=prod
|
|||||||
WORKDIR /srv/app
|
WORKDIR /srv/app
|
||||||
|
|
||||||
# php extensions installer: https://github.com/mlocati/docker-php-extension-installer
|
# php extensions installer: https://github.com/mlocati/docker-php-extension-installer
|
||||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
@ -110,7 +105,7 @@ RUN set -eux; \
|
|||||||
RUN rm -f .env.local.php
|
RUN rm -f .env.local.php
|
||||||
|
|
||||||
# Build Caddy with the Mercure and Vulcain modules
|
# Build Caddy with the Mercure and Vulcain modules
|
||||||
FROM caddy:${CADDY_VERSION}-builder-alpine AS app_caddy_builder
|
FROM caddy:2.6-builder-alpine AS app_caddy_builder
|
||||||
|
|
||||||
RUN xcaddy build \
|
RUN xcaddy build \
|
||||||
--with github.com/dunglas/mercure \
|
--with github.com/dunglas/mercure \
|
||||||
@ -119,7 +114,7 @@ RUN xcaddy build \
|
|||||||
--with github.com/dunglas/vulcain/caddy
|
--with github.com/dunglas/vulcain/caddy
|
||||||
|
|
||||||
# Caddy image
|
# Caddy image
|
||||||
FROM caddy:${CADDY_VERSION} AS app_caddy
|
FROM caddy:2.6-alpine AS app_caddy
|
||||||
|
|
||||||
WORKDIR /srv/app
|
WORKDIR /srv/app
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user