* chore: add published Docker image workflow and self-host image flow * fix: align Docker publish and build paths Use the canonical GHCR image name and correct Dockerfile path references so CI publishing and documented local builds work as expected. * fix: restore Docker self-host runtime defaults Use the full Node base image and expose Compose env vars to the Cloudflare Vite runtime so local self-hosting keeps auth bindings and outbound HTTPS working.
19 lines
381 B
Docker
19 lines
381 B
Docker
# Use the full Node image so workerd has a working CA trust store for outbound HTTPS.
|
|
FROM node:22
|
|
|
|
ENV PNPM_HOME=/pnpm
|
|
ENV PATH=$PNPM_HOME:$PATH
|
|
|
|
WORKDIR /app
|
|
|
|
RUN corepack enable
|
|
|
|
COPY package.json pnpm-lock.yaml ./
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["sh", "-c", "pnpm run db:migrate:local && pnpm exec vite dev --host 0.0.0.0 --port ${PORT:-3001}"]
|