From 2f0f834ac9f6f9ca4a759bcced52067418da58aa Mon Sep 17 00:00:00 2001 From: trent-gezel Date: Tue, 23 Jul 2024 02:25:47 +1000 Subject: [PATCH] testing docker stuff --- Dockerfile | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e204114..700f182 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM node:20-slim AS base ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" +RUN corepack enable COPY . /app WORKDIR /app @@ -8,7 +9,7 @@ FROM base AS prod-deps RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod FROM base AS build -RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install +RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm installe RUN pnpm run build FROM base diff --git a/package.json b/package.json index a2fdf1b..2b96deb 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,6 @@ }, "devDependencies": { "drizzle-kit": "^0.23.0" - } + }, + "packageManager": "pnpm@9.6.0" } \ No newline at end of file