fix: revert BuildKit cache mounts (BuildKit not default on this host)

This commit is contained in:
Scott Idem
2026-03-10 17:10:19 -04:00
parent 5e0cc73084
commit ec00f75df6

View File

@@ -6,7 +6,7 @@ WORKDIR /app
# Install dependencies first for better Docker layer caching. # Install dependencies first for better Docker layer caching.
# This step only reruns if package.json or package-lock.json changes. # This step only reruns if package.json or package-lock.json changes.
COPY package*.json ./ COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm npm install RUN npm install
# Copy the rest of the source code. # Copy the rest of the source code.
COPY . . COPY . .
@@ -38,7 +38,7 @@ COPY --from=builder /app/build .
COPY --from=builder /app/package.json . COPY --from=builder /app/package.json .
# Install only production dependencies for a smaller, cleaner image. # Install only production dependencies for a smaller, cleaner image.
RUN --mount=type=cache,target=/root/.npm npm install --omit=dev RUN npm install --omit=dev
# Copy the resulting .env.production file to .env. # Copy the resulting .env.production file to .env.
# adapter-node reads from .env at runtime for non-PUBLIC_ variables. # adapter-node reads from .env at runtime for non-PUBLIC_ variables.