This is the first commit of the project, at the state that runs on timelog.minhtrannhat.com. Changes in this state: - Remove redundant UI text from the sidebar, timer and insights pages. - Show the remaining time and tag in the browser tab title while a session runs. - Put the shared record type and the due and end helpers in src/shared/record.ts. - Remove the startup tag migration and the one-time Forest import script. The live data does not need them. - Remove unused CSS, Playwright ignore rules and duplicate helpers. - Do not track Forest CSV exports, because they contain private data. Co-Authored-By: Claude Opus 5.5 <[email protected]>
16 lines
360 B
Docker
16 lines
360 B
Docker
FROM oven/bun:1.4.2 AS build
|
|
WORKDIR /app
|
|
COPY package.json bun.lock tsconfig.json ./
|
|
RUN bun install --frozen-lockfile
|
|
COPY scripts ./scripts
|
|
COPY src ./src
|
|
RUN bun run build
|
|
|
|
FROM oven/bun:1.4.2
|
|
WORKDIR /app
|
|
COPY --from=build /app/dist ./dist
|
|
COPY --from=build /app/src/web-server.ts ./src/web-server.ts
|
|
USER bun
|
|
EXPOSE 3000
|
|
CMD ["bun", "src/web-server.ts"]
|