From 76305376b6516703e11bc5393bca581387ca8a9b Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 16:59:05 -0400 Subject: [PATCH 1/7] Remade dockerfile --- Dockerfile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f00798..e5c422b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,10 @@ RUN corepack enable RUN yarn set version stable # Create app directory -WORKDIR /usr/src +WORKDIR /app -FROM base AS builder - -# Files required by npm install -COPY package*.json ./ +# Files required by yarn install +COPY package.json yarn.lock ./ # Install app dependencies RUN yarn install @@ -25,18 +23,14 @@ RUN yarn typecheck FROM base AS runner -# Files required by npm install -COPY package.json yarn.lock ./ +# Bundle app source +COPY . . # Install only production app dependencies RUN yarn install --frozen-lockfile -# Bundle app source -COPY . . - USER node # Start the app EXPOSE 80 -CMD ["yarn", "start"] -# CMD ["node", "--import", "tsx", "./src/main.ts"] \ No newline at end of file +CMD ["yarn", "start"] \ No newline at end of file -- 2.49.1 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 2/7] 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 -- 2.49.1 From fad5973e876ddb9110af082695b7de823e2c2c10 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:05:36 -0400 Subject: [PATCH 3/7] Remade dockerfile --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a841ece..921ab36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,7 @@ RUN yarn set version stable # Files required by yarn install COPY package.json yarn.lock ./ -COPY .pnp.cjs .pnp.loader.mjs .yarn/ .yarn/ -v +COPY .yarn/ .yarn/ # Install app dependencies RUN yarn install --immutable -- 2.49.1 From 24850b3d2c35de22284ef21a124be04c666f65f9 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:05:52 -0400 Subject: [PATCH 4/7] Remade dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 921ab36..e4ae153 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN yarn set version stable # Files required by yarn install COPY package.json yarn.lock ./ -COPY .yarn/ .yarn/ +COPY .pnp.cjs .pnp.loader.mjs .yarn/ .yarn/ # Install app dependencies RUN yarn install --immutable -- 2.49.1 From b6f9b6a9658480c931d38957e965843df0044575 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:07:06 -0400 Subject: [PATCH 5/7] Remade dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e4ae153..39c7f77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ RUN yarn set version stable # Files required by yarn install COPY package.json yarn.lock ./ -COPY .pnp.cjs .pnp.loader.mjs .yarn/ .yarn/ # Install app dependencies RUN yarn install --immutable -- 2.49.1 From 6eab2bc59be15e3a062d1c7ce06d10acf21bec4b Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:08:34 -0400 Subject: [PATCH 6/7] Remade dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39c7f77..a4795c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,12 @@ COPY package.json yarn.lock ./ # Install app dependencies RUN yarn install --immutable +# Type check app +RUN yarn typecheck + # Bundle app source COPY . . -# Type check app -RUN yarn typecheck FROM base AS runner -- 2.49.1 From 149cbce05405edbeecae49809ca836ee48798c09 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Fri, 20 Jun 2025 17:09:37 -0400 Subject: [PATCH 7/7] Remade dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a4795c3..18b5e1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY package.json yarn.lock ./ RUN yarn install --immutable # Type check app -RUN yarn typecheck +# RUN yarn typecheck # Bundle app source COPY . . -- 2.49.1