CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | FROM oven/bun:1.3 AS base
WORKDIR /app
# Install git (required for ALL git operations — clone, push, branch/tree
# listing, diffs). Verify it landed: a missing binary here must fail the
# build loudly rather than ship an image that 500s on every repo page.
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& git --version
# Install dependencies
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
# Copy source
COPY src/ ./src/
COPY drizzle/ ./drizzle/
COPY scripts/ ./scripts/
COPY tsconfig.json drizzle.config.ts ./
COPY legal/ ./legal/
COPY CLAUDE.md LICENSE ./
# Create repos directory
RUN mkdir -p /data/repos
ENV GIT_REPOS_PATH=/data/repos
ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
# Run as non-root user for security
RUN chown -R bun:bun /app /data/repos
USER bun
CMD ["bun", "run", "src/index.ts"]
|