File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM rust:1.77 as builder
1
+ FROM rust:1.86.0 AS builder
2
2
3
3
WORKDIR /usr/src/app
4
4
COPY . .
Original file line number Diff line number Diff line change 1
1
# Stage 1: Build WASM
2
2
# Use a specific Rust version for reproducibility
3
- FROM rust:1.78 as wasm-builder
3
+ FROM rust:1.86.0 AS wasm-builder
4
4
5
5
WORKDIR /usr/src/app
6
6
@@ -17,7 +17,7 @@ COPY ./md-wasm ./md-wasm
17
17
RUN wasm-pack build ./md-wasm --target web
18
18
19
19
# Stage 2: Build Astro application
20
- FROM node:20-slim as builder
20
+ FROM node:20-slim AS builder
21
21
22
22
WORKDIR /app
23
23
@@ -49,6 +49,7 @@ FROM node:20-slim
49
49
50
50
WORKDIR /app
51
51
52
+ RUN npm install -g pnpm
52
53
# Copy built application from the builder stage
53
54
COPY --from=builder /app/dist /app/dist
54
55
# Copy package.json for running the app (Astro's node adapter might need it)
@@ -57,7 +58,7 @@ COPY --from=builder /app/package.json /app/
57
58
# Install production dependencies only
58
59
# Astro's standalone mode for the node adapter bundles dependencies,
59
60
# but following the original Dockerfile's pattern.
60
- RUN npm install --omit=dev
61
+ RUN pnpm install --prod
61
62
62
63
EXPOSE 4321
63
64
Original file line number Diff line number Diff line change 1
- version : ' 3.8'
2
-
3
1
services :
4
2
postgres :
5
3
image : postgres:16
You can’t perform that action at this time.
0 commit comments