Initial project setup (rust)

This commit is contained in:
ufo6849
2026-03-19 20:17:42 +09:00
parent c008ef855b
commit 6a6d2321d0
7 changed files with 219 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM rust:1.78-alpine AS builder
RUN apk add --no-cache musl-dev
WORKDIR /app
COPY . .
RUN cargo build --release
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/target/release/$(basename $(pwd)) ./server
EXPOSE 8080
CMD ["./server"]