Skip to content

Commit

Permalink
reset dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jan 22, 2024
1 parent 9b5b30a commit 0f22187
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
5 changes: 0 additions & 5 deletions .dockerignore

This file was deleted.

27 changes: 5 additions & 22 deletions Dockerfile
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"]

0 comments on commit 0f22187

Please sign in to comment.