File tree Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM node:22-alpine AS build
22WORKDIR /app
33COPY . .
44
5- # install pnpm
6- RUN npm install -g pnpm
5+ # install devDependencies
6+ RUN RUN apk add curl && npm install -g pnpm
77
88# build and install dependency
99RUN pnpm i && npx vite build
@@ -18,13 +18,13 @@ WORKDIR /app
1818# create the non root user
1919RUN addgroup -g 1001 portfolio_group && adduser -u 1001 -G portfolio_group -s /bin/sh -D portfolio
2020
21- # copy the build and the package.json
21+ # copy the build and the package.json
2222COPY --from=build /app/package.json /app/package.json
2323COPY --from=build /app/node_modules /app/node_modules
2424COPY --from=build /app/build /app/build
2525RUN chown -R portfolio:portfolio_group /app
2626
2727# set the user
2828USER portfolio
29- ENV port 3000
29+ ENV port= 3000
3030CMD [ "node" , "build" ]
Original file line number Diff line number Diff line change 2424
2525 "vite" : " latest" ,
2626 "tslib" : " latest" ,
27- "ts-node" : " ^10.9.2" ,
28- "typescript" : " latest" ,
2927
30- "@ariga/atlas" : " latest" ,
28+ "ts-node" : " ^10" ,
29+ "typescript" : " ^5" ,
30+
31+ "@ariga/atlas" : " ^0" ,
3132 "kysely-codegen" : " ^0" ,
3233
3334 "postcss" : " ^8" ,
You can’t perform that action at this time.
0 commit comments