fix: Create data directory before Astro DB build

This commit is contained in:
Kunthawat Greethong
2026-03-09 20:49:35 +07:00
parent 891bb3e96e
commit 0c746bb2a6

View File

@@ -3,7 +3,7 @@ WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN ASTRO_DB_REMOTE_URL=file:./data/consent.db npx astro build --remote
RUN mkdir -p ./data && ASTRO_DB_REMOTE_URL=file:./data/consent.db npx astro build --remote
FROM node:20-alpine
WORKDIR /app