Skip to content

Commit 8507ed4

Browse files
authored
Merge pull request #2 from wannevancamp/patch-2
Update Dockerfile
2 parents cca15fa + 188665a commit 8507ed4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ ARG BASE_IMAGE=shopware/docker-base:8.3
44

55
# pin versions
66
FROM ${BASE_IMAGE} as base-image
7-
FROM ghcr.io/friendsofshopware/shopware-cli:latest-php-8.3 as shopware-cli
7+
FROM ghcr.io/shopware/shopware-cli:latest-php-8.3 AS shopware-cli
88

99
# build
1010

1111
FROM shopware-cli as build
1212

13+
ARG SHOPWARE_PACKAGES_TOKEN
14+
1315
ADD . /src
1416
WORKDIR /src
1517

16-
RUN /usr/local/bin/entrypoint.sh shopware-cli project ci /src
17-
18-
# build final image
18+
RUN --mount=type=secret,id=composer_auth,dst=/src/auth.json \
19+
--mount=type=cache,target=/root/.composer \
20+
--mount=type=cache,target=/root/.npm \
21+
/usr/local/bin/entrypoint.sh shopware-cli project ci /src
1922

2023
FROM base-image
2124

0 commit comments

Comments
 (0)