-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
#syntax=docker/dockerfile:1.4 | ||
ARG PHP_VERSION | ||
|
||
# pin versions | ||
FROM shopware/docker-base:8.2 as base-image | ||
FROM ghcr.io/friendsofshopware/shopware-cli:latest-php-8.2 as shopware-cli | ||
FROM ghcr.io/friendsofshopware/shopware-cli-base:${PHP_VERSION} | ||
|
||
FROM base-image as base-extended | ||
RUN install-php-extensions opentelemetry | ||
COPY shopware-cli /usr/local/bin/ | ||
|
||
RUN echo "display_errors = 1" >> /usr/local/etc/php/conf.d/99-z-custom.ini | ||
|
||
|
||
FROM shopware-cli as build | ||
|
||
ADD . /src | ||
WORKDIR /src | ||
|
||
RUN --mount=type=secret,id=composer_auth,dst=/src/auth.json \ | ||
--mount=type=cache,target=/root/.composer \ | ||
--mount=type=cache,target=/root/.npm \ | ||
/usr/local/bin/entrypoint.sh shopware-cli project ci /src | ||
|
||
FROM base-extended | ||
|
||
COPY --from=build --chown=www-data --link /src /var/www/html | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh", "shopware-cli"] | ||
CMD ["--help"] |