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