tangled
alpha
login
or
join now
margin.at
/
margin
85
fork
atom
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
85
fork
atom
overview
issues
3
pulls
1
pipelines
fix dockerfile
scanash.com
3 weeks ago
0f4e727e
eed54a7e
+7
-4
2 changed files
expand all
collapse all
unified
split
.dockerignore
Dockerfile
+2
.dockerignore
···
1
1
# Build artifacts
2
2
dist/
3
3
build/
4
4
+
web/dist/
5
5
+
web/node_modules/
4
6
node_modules/
5
7
vendor/
6
8
+5
-4
Dockerfile
···
1
1
-
FROM node:20-alpine AS frontend-builder
1
1
+
FROM oven/bun:1 AS frontend-builder
2
2
3
3
WORKDIR /app/web
4
4
-
COPY web/package*.json ./
5
5
-
RUN npm ci
4
4
+
COPY web/package.json web/bun.lock ./
5
5
+
RUN bun install
6
6
COPY web/ ./
7
7
-
RUN npm run build
7
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
31
+
ENV STATIC_DIR=/app/dist
31
32
32
33
EXPOSE 8080
33
34