# ForgePM — container image for any Node-capable host (Fly.io, Railway, Render Docker, etc.)
# Zero runtime dependencies; node:sqlite is built in (needs --experimental-sqlite on Node 22).
FROM node:22-slim

WORKDIR /app
COPY . .

ENV NODE_ENV=production
ENV FORGEPM_HOST=0.0.0.0
# Most platforms inject PORT and the app honors it (see src/config.mjs).
EXPOSE 4317

# The app auto-seeds a demo organization on first boot if the database is empty.
CMD ["node", "--experimental-sqlite", "src/server.mjs"]
