fix: Create data directory before Astro DB build

This commit is contained in:
Kunthawat Greethong committed 2026-03-09 20:49:35 +07:00
1 parent 891bb3e96e
commit 0c746bb2a6
1 file changed
+1 -1
+1 -1
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