Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ARG PHP_VERSION=7.4

# Stage for Composer
FROM php:${PHP_VERSION}-cli-alpine as composer_builder
FROM php:${PHP_VERSION}-cli-alpine AS composer_builder
RUN apk add --no-cache curl \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& rm -rf /var/cache/apk/*

# Stage for WP-CLI
FROM php:${PHP_VERSION}-cli-alpine as wpcli_builder
FROM php:${PHP_VERSION}-cli-alpine AS wpcli_builder
RUN apk add --no-cache curl \
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
Expand All @@ -19,7 +19,7 @@ RUN apk add --no-cache curl \
&& rm -rf /var/cache/apk/*

# Main build stage
FROM php:${PHP_VERSION}-fpm-alpine as builder
FROM php:${PHP_VERSION}-fpm-alpine AS builder

LABEL maintainer="Tareq Hasan <tareq@wedevs.com>"

Expand Down