From 9803379f967e934d60a6cdd21d2681a37530ae15 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:04:26 -0400 Subject: [PATCH] Remade dockerfile --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5c422b..a841ece 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,21 @@ FROM node:lts-slim AS base +# Create app directory +WORKDIR /app + # Enable Corepack RUN corepack enable # Set Yarn to the latest stable version RUN yarn set version stable -# Create app directory -WORKDIR /app - # Files required by yarn install COPY package.json yarn.lock ./ +COPY .pnp.cjs .pnp.loader.mjs .yarn/ .yarn/ +v # Install app dependencies -RUN yarn install +RUN yarn install --immutable # Bundle app source COPY . . @@ -27,7 +29,7 @@ FROM base AS runner COPY . . # Install only production app dependencies -RUN yarn install --frozen-lockfile +RUN yarn install --immutable USER node