ALL 0.1.0 Code

This commit is contained in:
2026-02-28 04:21:27 +00:00
commit 7958510989
76 changed files with 17135 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM node:22-alpine AS frontend
WORKDIR /app
COPY package.json bun.lockb* ./
RUN npm install
COPY . .
RUN npm run build
FROM golang:1.24-alpine AS backend
WORKDIR /app/server
COPY server/go.mod server/go.sum ./
RUN go mod download
COPY server/ .
RUN CGO_ENABLED=0 GOOS=linux go build -o /fpmb-server ./cmd/api/main.go
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
WORKDIR /app/server
COPY --from=backend /fpmb-server ./fpmb-server
COPY --from=frontend /app/build ../build
COPY --from=frontend /app/static ../static
RUN mkdir -p ../data
EXPOSE 8080
CMD ["./fpmb-server"]