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