Skip to content

Commit 373ef51

Browse files
committed
fix dockerfile
1 parent 4568da2 commit 373ef51

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM node:22-alpine AS build
22
WORKDIR /app
33
COPY . .
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
99
RUN pnpm i && npx vite build
@@ -18,13 +18,13 @@ WORKDIR /app
1818
# create the non root user
1919
RUN 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
2222
COPY --from=build /app/package.json /app/package.json
2323
COPY --from=build /app/node_modules /app/node_modules
2424
COPY --from=build /app/build /app/build
2525
RUN chown -R portfolio:portfolio_group /app
2626

2727
# set the user
2828
USER portfolio
29-
ENV port 3000
29+
ENV port=3000
3030
CMD [ "node", "build" ]

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
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",

pnpm-lock.yaml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)