Add Shopware 6 example (#61)

This commit is contained in:
Cynthia Ebert
2025-12-13 20:06:52 +01:00
committed by GitHub
parent 0cd6ace70a
commit 569b86f260
35 changed files with 12770 additions and 0 deletions

27
shopware6/Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
#syntax=docker/dockerfile:1.4
ARG BASE_IMAGE=shopware/docker-base:8.3
# pin versions
FROM ghcr.io/shopware/docker-base:8.3 as base-image
FROM ghcr.io/shopware/shopware-cli:latest-php-8.3 AS shopware-cli
# build
FROM shopware-cli as build
ARG SHOPWARE_PACKAGES_TOKEN
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-image
COPY --from=build --chown=82 --link /src /var/www/html
EXPOSE 8000