Skip to content

Commit 4c4e5da

Browse files
committed
fix: dockerfile
1 parent 4df4a0c commit 4c4e5da

3 files changed

Lines changed: 4566 additions & 3737 deletions

File tree

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
FROM node:20-slim AS base
2+
23
ENV PNPM_HOME="/pnpm"
34
ENV PATH="$PNPM_HOME:$PATH"
45
RUN corepack enable
5-
COPY . /app
6-
WORKDIR /app
76

8-
FROM base AS prod-deps
9-
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
7+
FROM base AS prod
108

11-
FROM base AS build
12-
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
9+
COPY pnpm-lock.yaml /app
10+
WORKDIR /app
11+
RUN pnpm fetch --prod
12+
13+
COPY . /app
1314
RUN pnpm run build
1415

1516
FROM base
16-
COPY --from=prod-deps /app/node_modules /app/node_modules
17-
COPY --from=build /app/dist /app/dist
17+
COPY --from=prod /app/node_modules /app/node_modules
18+
COPY --from=prod /app/dist /app/dist

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@
1717
"i18n:sync": "npm run i18n:generate:pages && npm run i18n:generate:types"
1818
},
1919
"dependencies": {
20-
"@astrojs/mdx": "^4.3.2",
21-
"@astrojs/vue": "^5.1.0",
20+
"@astrojs/mdx": "^4.3.12",
21+
"@astrojs/vue": "^5.1.3",
2222
"@astropub/md": "^1.0.0",
2323
"@iconify/vue": "^5.0.0",
2424
"@types/lodash": "^4.17.20",
25-
"@vueuse/core": "^13.6.0",
25+
"@vueuse/core": "^13.9.0",
2626
"@vueuse/sound": "^2.1.3",
27-
"astro": "^5.12.6",
27+
"astro": "^5.16.0",
2828
"astro-i18n": "^2.2.4",
2929
"camelcase-keys": "^9.1.3",
3030
"decamelcase-keys": "^1.1.1",
31-
"esbuild": "^0.25.8",
31+
"esbuild": "^0.25.12",
3232
"lodash": "^4.17.21",
33-
"marked": "^16.1.2",
34-
"tsx": "^4.20.3",
33+
"marked": "^16.4.2",
34+
"tsx": "^4.20.6",
3535
"vite-plugin-devtools-json": "^0.4.1",
36-
"vue": "^3.5.18",
36+
"vue": "^3.5.24",
3737
"vue-confetti-explosion": "^1.0.2"
3838
},
3939
"devDependencies": {
40-
"@eslint/js": "^9.32.0",
41-
"eslint": "^9.32.0",
40+
"@eslint/js": "^9.39.1",
41+
"eslint": "^9.39.1",
4242
"eslint-config-prettier": "^10.1.8",
43-
"eslint-plugin-astro": "^1.3.1",
43+
"eslint-plugin-astro": "^1.5.0",
4444
"prettier": "^3.6.2",
4545
"prettier-plugin-astro": "^0.14.1",
46-
"sass-embedded": "^1.89.2",
47-
"typescript": "^5.8.3",
48-
"typescript-eslint": "^8.38.0"
46+
"sass-embedded": "^1.93.3",
47+
"typescript": "^5.9.3",
48+
"typescript-eslint": "^8.47.0"
4949
}
5050
}

0 commit comments

Comments
 (0)