From 891bb3e96e80116918f1d422c2bd4ae782d3e6ce Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Mon, 9 Mar 2026 20:47:12 +0700 Subject: [PATCH] fix: Add ASTRO_DB_REMOTE_URL and --remote flag to Docker build command --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8b7ee61..b91f3bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . -RUN npm run build +RUN ASTRO_DB_REMOTE_URL=file:./data/consent.db npx astro build --remote FROM node:20-alpine WORKDIR /app @@ -11,6 +11,7 @@ COPY package*.json ./ RUN npm install --production COPY --from=builder /app/dist ./dist COPY --from=builder /app/db ./db +COPY --from=builder /app/data ./data RUN apk add --no-cache sqlite-libs