From cd25ae51cd0db5628c7a725d392d4b55e9b62521 Mon Sep 17 00:00:00 2001 From: aserstobitov <121223640+aserstobitov@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:05:09 +0200 Subject: [PATCH] Create Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a38d4fa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +#syntax=docker/dockerfile:1.4 + +# pin versions +FROM ghcr.io/shopware/docker-base:8.2 as base-image +FROM ghcr.io/friendsofshopware/shopware-cli:latest-php-8.2 as shopware-cli + +# build + +FROM shopware-cli as build + +COPY --link . /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 + +# build final image + +FROM base-image + +COPY --from=build --chown=www-data /src /var/www/html