mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-06 04:21:09 +00:00
Update Dockerfile and docker-compose.yml to streamline Prisma migration and build process
This commit is contained in:
@@ -22,7 +22,7 @@ RUN pnpm install --frozen-lockfile
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Generate Prisma client and build SvelteKit (Node adapter)
|
# Generate Prisma client and build SvelteKit (Node adapter)
|
||||||
RUN pnpm prisma generate && pnpm prisma migrate deploy
|
RUN pnpm prisma generate
|
||||||
|
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ services:
|
|||||||
SERVICE_FQDN_WEB_3000: "" # Coolify will generate the public URL
|
SERVICE_FQDN_WEB_3000: "" # Coolify will generate the public URL
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
command: ["node", "build/index.js"]
|
command: ["sh", "-c", "pnpm prisma migrate deploy && node build/index.js"]
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
|||||||
Reference in New Issue
Block a user