Wrote simple blender service for rendering models and added to stack

This commit is contained in:
2025-04-04 18:04:48 +01:00
parent 9f42b4a6e3
commit 68d2330646
4 changed files with 229 additions and 0 deletions

15
blender_server/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:alpine AS builder
WORKDIR /app
COPY go.mod go.sum* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./main.go
FROM alpine:latest
RUN apk update
RUN apk add blender
WORKDIR /root/
COPY --from=builder /app/server .
COPY main.py.tmpl .
EXPOSE 8080
CMD ["./server"]