backlog-md/Dockerfile.aggregator

30 lines
668 B
Docker

# Backlog Aggregator Dockerfile
# Multi-project real-time task aggregation server
FROM oven/bun:1 AS base
WORKDIR /app
# Install dependencies
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lock* bunfig.toml /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile --ignore-scripts
# Build stage
FROM base AS release
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
# Build CSS (needed for components)
RUN bun run build:css || true
# Expose port
EXPOSE 6420
# Set environment
ENV NODE_ENV=production
ENV PORT=6420
# Run the aggregator server
CMD ["bun", "src/aggregator/index.ts", "--port", "6420", "--paths", "/projects"]