Initial commit: FunConnect project with server, relay, client and admin panel

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-24 20:56:36 +08:00
parent eb6e901440
commit b6891483ae
167 changed files with 16147 additions and 106 deletions

20
server/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM rust:1.79-slim-bookworm AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
COPY Cargo.toml Cargo.lock* ./
COPY shared/ shared/
COPY server/ server/
# Build only server to avoid client (Tauri) deps in Docker
RUN cargo build --release -p funmc-server
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/server /usr/local/bin/funmc-server
COPY --from=builder /app/server/migrations /migrations
EXPOSE 3000
CMD ["funmc-server"]