Skip to content

Commit 0918cde

Browse files
authored
1 parent cca15fa commit 0918cde

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
#syntax=docker/dockerfile:1.4
22

3-
ARG BASE_IMAGE=shopware/docker-base:8.3
4-
53
# pin versions
6-
FROM ${BASE_IMAGE} as base-image
7-
FROM ghcr.io/friendsofshopware/shopware-cli:latest-php-8.3 as shopware-cli
4+
FROM ghcr.io/shopware/docker-base:8.3 AS base-image
5+
FROM ghcr.io/shopware/shopware-cli:latest-php-8.3 AS shopware-cli
86

97
# build
108

119
FROM shopware-cli as build
1210

11+
ARG SHOPWARE_PACKAGES_TOKEN
12+
1313
ADD . /src
1414
WORKDIR /src
1515

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

2021
FROM base-image
2122

0 commit comments

Comments
 (0)