Skip to content

Commit d90dc85

Browse files
Copilotdannystaple
andcommitted
Fix Docker base stage caching by removing app copy
Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
1 parent 4b1305e commit d90dc85

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ WORKDIR /app/src
77
COPY package.json package-lock.json ./
88
RUN npm ci
99

10-
# Copy rest of the app source
11-
COPY . /app/src
12-
1310
FROM base AS debug
1411

12+
# Copy app source for development
13+
COPY . /app/src
14+
1515
RUN apt-get update && apt-get install -y \
1616
less \
1717
iputils-ping \
@@ -47,6 +47,9 @@ COPY . /usr/local/apache2/htdocs/
4747

4848
FROM base AS tests
4949

50+
# Copy app source for testing
51+
COPY . /app/src
52+
5053
# Install necessary packages for Playwright
5154
RUN apt-get update && apt-get install -y \
5255
libnss3 \
@@ -65,3 +68,6 @@ RUN npx playwright install chromium --with-deps
6568
CMD ["npm", "run", "test:bdd"]
6669

6770
FROM base
71+
72+
# Copy app source for the final stage
73+
COPY . /app/src

0 commit comments

Comments
 (0)