-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I use Docker to run this locally, but the workflow with postgres makes it a bit awkward to work with. Would it be possible add Docker support for building and deploying easier locally?
Right now I do something like this, but it is not ideal that the build process requires a db connection string.
FROM node:22-bookworm AS build
WORKDIR /build
COPY . .
ENV DATABASE_URL="postgresql://ckstats:<password>@192.168.0.100:5432/ckstats"
RUN npm install && npm run build
FROM node:22-bookworm
ENV DATABASE_URL="postgresql://ckstats:<password>@192.168.0.100:5432/ckstats"
ENV API_URL="http://192.168.0.100:8000/api/v1"
WORKDIR /ckstats
COPY --from=build /build .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels