fix: Create data directory before Astro DB build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user