A lexicon-driven AppView for ATProto. happyview.dev
backfill firehose jetstream atproto appview oauth lexicon
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: add frontend build to Dockerfile and CI pipeline

Trezy 8b84e983 6b17eabe

+32
+9
.github/workflows/release.yml
··· 32 32 - name: Checkout repository 33 33 uses: actions/checkout@v4 34 34 35 + - name: Setup Node.js 36 + uses: actions/setup-node@v4 37 + with: 38 + node-version: 22 39 + 40 + - name: Build frontend 41 + working-directory: web 42 + run: npm ci && npm run build 43 + 35 44 - name: Cache Rust build 36 45 uses: actions/cache@v4 37 46 with:
+11
Dockerfile
··· 1 + FROM node:22-alpine AS frontend 2 + 3 + WORKDIR /app/web 4 + COPY web/package.json web/package-lock.json ./ 5 + RUN npm ci 6 + COPY web/ . 7 + RUN npm run build 8 + 1 9 FROM rust:1.93 AS builder 2 10 3 11 WORKDIR /app ··· 18 26 RUN useradd -r -s /bin/false happyview 19 27 20 28 COPY --from=builder /app/target/release/happyview /usr/local/bin/happyview 29 + COPY --from=frontend /app/web/out /srv/static 30 + 31 + ENV STATIC_DIR=/srv/static 21 32 22 33 USER happyview 23 34
+12
docker-compose.yml
··· 56 56 aip: 57 57 condition: service_started 58 58 59 + web: 60 + image: node:22-alpine 61 + working_dir: /app 62 + command: npm run dev 63 + ports: 64 + - "3001:3001" 65 + volumes: 66 + - ./web:/app 67 + - /app/node_modules 68 + environment: 69 + - HOSTNAME=0.0.0.0 70 + 59 71 volumes: 60 72 pgdata: 61 73 aip-pgdata: