Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ jobs:
egress-policy: audit

- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: '20'
cache: 'yarn'
bun-version: latest
- run: cp .env.example .env
- run: yarn install
- run: yarn lint
- run: bun install --frozen-lockfile
- run: bun run lint

type-check:
name: Type Check
Expand All @@ -36,13 +35,12 @@ jobs:
egress-policy: audit

- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: '20'
cache: 'yarn'
bun-version: latest
- run: cp .env.example .env
- run: yarn install
- run: npx tsc --noEmit
- run: bun install --frozen-lockfile
- run: bun run tsc --noEmit

build:
name: Build
Expand All @@ -54,10 +52,9 @@ jobs:
egress-policy: audit

- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
node-version: '20'
cache: 'yarn'
bun-version: latest
- run: cp .env.example .env
- run: yarn install
- run: yarn build
- run: bun install --frozen-lockfile
- run: bun run build
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand Down
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
FROM node:20-alpine AS deps
FROM oven/bun:1 AS deps
WORKDIR /app
COPY ui/package.json ui/yarn.lock ./
RUN --mount=type=cache,target=/root/.yarn \
yarn install --frozen-lockfile
COPY ui/package.json ui/bun.lock ./
RUN bun install --frozen-lockfile

FROM node:20-alpine AS builder
FROM oven/bun:1 AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY ./ui .

ENV NEXT_TELEMETRY_DISABLED=1

RUN --mount=type=cache,target=/app/.next/cache \
yarn build
RUN bun run build

FROM node:20-alpine AS runner
WORKDIR /app
Expand All @@ -37,4 +35,4 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

CMD ["node", "server.js"]
CMD ["node", "server.js"]
Loading
Loading