Skip to content

Docker support #2

@eandersson

Description

@eandersson

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions