Skip to content

Commit

Permalink
Merge pull request #94 from gemini-hlsw/fix-pnpm-registry-call
Browse files Browse the repository at this point in the history
Fix pnpm installation in Dockerfile
  • Loading branch information
hugo-vrijswijk authored Sep 18, 2024
2 parents b456404 + 8a8ec67 commit 06edabb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ FROM node:22.8.0-alpine AS base

# Create app directory
WORKDIR /usr/src/app
RUN apk add --no-cache openssl
RUN apk add --no-cache openssl

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

# Installs pnpm
RUN pnpm --version
RUN corepack enable

# Create volume for DB initialization
RUN mkdir /usr/src/app/dbinit
Expand All @@ -22,6 +20,8 @@ USER software

COPY --chown=software:software . .

RUN corepack install --global pnpm

# Separate layer for dependencies, caching the npm cache
FROM base AS prod-deps
ENV NODE_ENV=production
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "navigate-configs",
"version": "1.0.0",
"main": "index.js",
"main": "dist/index.js",
"license": "MIT",
"type": "module",
"packageManager": "[email protected]",
Expand Down Expand Up @@ -56,5 +56,10 @@
},
"lint-staged": {
"*.{js,mjs,ts,tsx,jsx,css,md,json,yml}": "prettier --write"
}
},
"files": [
"dist",
"prisma",
"src"
]
}

0 comments on commit 06edabb

Please sign in to comment.