attempt docker build with pnpm

This commit is contained in:
Amruth Pillai 2022-03-03 15:33:11 +01:00
parent 58160b2b6e
commit 5fc7a32c67
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
4 changed files with 14369 additions and 47287 deletions

View File

@ -1,16 +1,26 @@
FROM mcr.microsoft.com/playwright:focal
FROM mcr.microsoft.com/playwright:focal AS build
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
WORKDIR /app
COPY ./package*.json .
COPY .npmrc package.json pnpm-lock.yaml ./
RUN npm ci
RUN pnpm install --frozen-lockfile
COPY . .
RUN npm run build
RUN pnpm run build
FROM mcr.microsoft.com/playwright:focal AS deploy
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
WORKDIR /app
COPY --from=build /app/dist ./dist
# Expose App
EXPOSE 3000
EXPOSE 3100
CMD [ "npm", "start" ]
CMD [ "pnpm", "start" ]

47276
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -112,7 +112,7 @@
"@nrwl/eslint-plugin-nx": "13.8.3",
"@nrwl/jest": "13.8.3",
"@nrwl/linter": "13.8.3",
"@nrwl/nest": "^13.8.3",
"@nrwl/nest": "^13.8.4",
"@nrwl/node": "13.8.3",
"@nrwl/nx-cloud": "latest",
"@nrwl/react": "13.8.3",
@ -143,12 +143,10 @@
"babel-jest": "27.5.1",
"babel-loader": "^8.2.3",
"concurrently": "^7.0.0",
"csstype": "^3.0.10",
"cypress": "^9.5.1",
"csstype": "^3.0.11",
"eslint": "~8.10.0",
"eslint-config-next": "12.1.0",
"eslint-config-prettier": "8.4.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-react": "7.29.2",
@ -164,6 +162,6 @@
"sass": "^1.49.9",
"ts-jest": "27.1.3",
"typescript": "~4.5.5",
"webpack": "^5.69.1"
"webpack": "^5.70.0"
}
}

14350
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff