Skip to content

Modern Docker Management, Designed for Everyone

chore: include tests and email-templates package.json in Dockerfile and Dockerfile.dev

Kyle Mendelladc19c5b66a9
diff --git a/.dockerignore b/.dockerignore
index 9b723b7d8..8c4975775 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -33,6 +33,7 @@ LICENSE
*.md
docs
tests
+!tests/package.json
**/*.test.js
**/*.spec.js
**/*.stories.js
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 12956de5f..e846840ba 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -9,9 +9,11 @@ WORKDIR /app
COPY --chown=vp:vp pnpm-lock.yaml pnpm-workspace.yaml package.json ./
COPY --chown=vp:vp frontend/package.json ./frontend/package.json
+COPY --chown=vp:vp tests/package.json ./tests/package.json
+COPY --chown=vp:vp email-templates/package.json ./email-templates/package.json
RUN --mount=type=cache,id=arcane-pnpm-v3,target=/home/vp/.local/share/pnpm/store,sharing=locked,uid=1000,gid=1000 \
- vp install --frozen-lockfile --prefer-offline
+ vp install --frozen-lockfile --prefer-offline --filter ./frontend...
RUN printf 'NODE_VERSION=%s\nSVELTEKIT_VERSION=%s\n' \
"$(vp node --version)" \
diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev
index 809facfb2..cf4daeb32 100644
--- a/docker/Dockerfile.dev
+++ b/docker/Dockerfile.dev
@@ -10,11 +10,13 @@ WORKDIR /app
# Copy dependency manifests first to preserve the install layer cache
COPY --chown=vp:vp pnpm-lock.yaml pnpm-workspace.yaml package.json ./
COPY --chown=vp:vp frontend/package.json ./frontend/package.json
+COPY --chown=vp:vp tests/package.json ./tests/package.json
+COPY --chown=vp:vp email-templates/package.json ./email-templates/package.json
# Install dependencies with a persistent package store cache
RUN mkdir -p /home/vp/.local/share/pnpm/store
RUN --mount=type=cache,id=arcane-pnpm-v3,target=/home/vp/.local/share/pnpm/store,sharing=locked,uid=1000,gid=1000 \
- vp install --frozen-lockfile --prefer-offline
+ vp install --frozen-lockfile --prefer-offline --filter ./frontend...
# Copy frontend source
COPY --chown=vp:vp frontend ./frontend