Initial commit: FunConnect project with server, relay, client and admin panel
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
20
server/Dockerfile
Normal file
20
server/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user