mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 10:24:48 +10:00
attempt docker build with pnpm
This commit is contained in:
+16
-6
@@ -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
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./package*.json .
|
COPY .npmrc package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
RUN npm ci
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
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 3000
|
||||||
EXPOSE 3100
|
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "pnpm", "start" ]
|
||||||
Generated
-47276
File diff suppressed because it is too large
Load Diff
+3
-5
@@ -112,7 +112,7 @@
|
|||||||
"@nrwl/eslint-plugin-nx": "13.8.3",
|
"@nrwl/eslint-plugin-nx": "13.8.3",
|
||||||
"@nrwl/jest": "13.8.3",
|
"@nrwl/jest": "13.8.3",
|
||||||
"@nrwl/linter": "13.8.3",
|
"@nrwl/linter": "13.8.3",
|
||||||
"@nrwl/nest": "^13.8.3",
|
"@nrwl/nest": "^13.8.4",
|
||||||
"@nrwl/node": "13.8.3",
|
"@nrwl/node": "13.8.3",
|
||||||
"@nrwl/nx-cloud": "latest",
|
"@nrwl/nx-cloud": "latest",
|
||||||
"@nrwl/react": "13.8.3",
|
"@nrwl/react": "13.8.3",
|
||||||
@@ -143,12 +143,10 @@
|
|||||||
"babel-jest": "27.5.1",
|
"babel-jest": "27.5.1",
|
||||||
"babel-loader": "^8.2.3",
|
"babel-loader": "^8.2.3",
|
||||||
"concurrently": "^7.0.0",
|
"concurrently": "^7.0.0",
|
||||||
"csstype": "^3.0.10",
|
"csstype": "^3.0.11",
|
||||||
"cypress": "^9.5.1",
|
|
||||||
"eslint": "~8.10.0",
|
"eslint": "~8.10.0",
|
||||||
"eslint-config-next": "12.1.0",
|
"eslint-config-next": "12.1.0",
|
||||||
"eslint-config-prettier": "8.4.0",
|
"eslint-config-prettier": "8.4.0",
|
||||||
"eslint-plugin-cypress": "^2.12.1",
|
|
||||||
"eslint-plugin-import": "^2.25.4",
|
"eslint-plugin-import": "^2.25.4",
|
||||||
"eslint-plugin-jsx-a11y": "6.5.1",
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
||||||
"eslint-plugin-react": "7.29.2",
|
"eslint-plugin-react": "7.29.2",
|
||||||
@@ -164,6 +162,6 @@
|
|||||||
"sass": "^1.49.9",
|
"sass": "^1.49.9",
|
||||||
"ts-jest": "27.1.3",
|
"ts-jest": "27.1.3",
|
||||||
"typescript": "~4.5.5",
|
"typescript": "~4.5.5",
|
||||||
"webpack": "^5.69.1"
|
"webpack": "^5.70.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+14350
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user