Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments

fix dockerfile

+7 -4
+2
.dockerignore
··· 1 1 # Build artifacts 2 2 dist/ 3 3 build/ 4 + web/dist/ 5 + web/node_modules/ 4 6 node_modules/ 5 7 vendor/ 6 8
+5 -4
Dockerfile
··· 1 - FROM node:20-alpine AS frontend-builder 1 + FROM oven/bun:1 AS frontend-builder 2 2 3 3 WORKDIR /app/web 4 - COPY web/package*.json ./ 5 - RUN npm ci 4 + COPY web/package.json web/bun.lock ./ 5 + RUN bun install 6 6 COPY web/ ./ 7 - RUN npm run build 7 + RUN bun run build 8 8 9 9 FROM golang:1.24-alpine AS backend-builder 10 10 ··· 28 28 29 29 ENV PORT=8080 30 30 ENV DATABASE_URL=margin.db 31 + ENV STATIC_DIR=/app/dist 31 32 32 33 EXPOSE 8080 33 34