wip: pnpm + node version

This commit is contained in:
Philipp Dormann 2023-03-14 09:29:27 +01:00
parent 3680533eef
commit 732b2f061e
4 changed files with 2984 additions and 10 deletions

8
.gitignore vendored
View File

@ -1,11 +1,5 @@
node_modules node_modules
package-lock.json
yarn.lock
*.map *.map
public/env.js public/env.js
public/index.html public/index.html
/dist /dist
.yarn
.pnp.js
.yarnrc.yml
pnpm-lock.yaml

View File

@ -1,11 +1,11 @@
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16 as build FROM registry.odit.services/hub/library/node:19.7.0-alpine3.16 as build
WORKDIR /app WORKDIR /app
COPY package.json ./ COPY package.json ./
RUN npx pnpm i RUN npx pnpm i
COPY package.json *.config.js postcss.config.cjs tailwind.config.js vite.config.js index.html ./ COPY package.json pnpm-lock.yaml *.config.js postcss.config.cjs tailwind.config.js vite.config.js index.html ./
COPY src ./src COPY src ./src
COPY public ./public COPY public ./public
RUN yarn build RUN pnpm build
# final image # final image
FROM registry.odit.services/library/nginx-brotli:3.15 as final FROM registry.odit.services/library/nginx-brotli:3.15 as final
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html

View File

@ -56,5 +56,8 @@
}, },
"dependencies": { "dependencies": {
"@paralleldrive/cuid2": "^2.2.0" "@paralleldrive/cuid2": "^2.2.0"
},
"volta": {
"node": "19.7.0"
} }
} }

2977
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff