File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
22
33WORKDIR /usr/src/app
44COPY . .
Original file line number Diff line number Diff line change 11# Stage 1: Build WASM
22# Use a specific Rust version for reproducibility
3- FROM rust:1.78 as wasm-builder
3+ FROM rust:1.86.0 AS wasm-builder
44
55WORKDIR /usr/src/app
66
@@ -17,7 +17,7 @@ COPY ./md-wasm ./md-wasm
1717RUN wasm-pack build ./md-wasm --target web
1818
1919# Stage 2: Build Astro application
20- FROM node:20-slim as builder
20+ FROM node:20-slim AS builder
2121
2222WORKDIR /app
2323
@@ -49,6 +49,7 @@ FROM node:20-slim
4949
5050WORKDIR /app
5151
52+ RUN npm install -g pnpm
5253# Copy built application from the builder stage
5354COPY --from=builder /app/dist /app/dist
5455# 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/
5758# Install production dependencies only
5859# Astro's standalone mode for the node adapter bundles dependencies,
5960# but following the original Dockerfile's pattern.
60- RUN npm install --omit=dev
61+ RUN pnpm install --prod
6162
6263EXPOSE 4321
6364
Original file line number Diff line number Diff line change 1- version : ' 3.8'
2-
31services :
42 postgres :
53 image : postgres:16
You can’t perform that action at this time.
0 commit comments