Skip to content

Commit

Permalink
testing docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-001 committed Jul 22, 2024
1 parent 62bf379 commit 2f0f834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY . /app
WORKDIR /app

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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
},
"devDependencies": {
"drizzle-kit": "^0.23.0"
}
},
"packageManager": "pnpm@9.6.0"
}

0 comments on commit 2f0f834

Please sign in to comment.