We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86f3d86 commit bb1d67aCopy full SHA for bb1d67a
1 file changed
Dockerfile
@@ -3,12 +3,6 @@ FROM node:24.14.0-slim AS base
3
# This will be set by the GitHub action to the folder containing this component.
4
ARG FOLDER=/app
5
6
-# Install dependencies only when needed
7
-FROM base AS deps
8
-
9
-COPY . /app
10
-WORKDIR ${FOLDER}
11
12
# Enable corepack
13
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
14
RUN corepack enable
@@ -20,6 +14,11 @@ ENV CI=true
20
ENV PNPM_CONFIG_MINIMUM_RELEASE_AGE=0
21
15
ENV PNPM_CONFIG_STRICT_DEP_BUILDS=false
22
16
17
+# Install dependencies only when needed
18
+FROM base AS deps
19
+COPY . /app
+WORKDIR ${FOLDER}
+
23
# Install dependencies based on the preferred package manager
24
RUN \
25
if [ -f yarn.lock ]; then \
0 commit comments