mirror of
https://github.com/Cian-H/simple_blender_server.git
synced 2025-12-22 13:31:57 +00:00
19 lines
367 B
Docker
19 lines
367 B
Docker
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 py3-pip
|
|
RUN pip install numpy scipy trimesh
|
|
RUN del py3-pip
|
|
|
|
WORKDIR /root/
|
|
COPY --from=builder /app/server .
|
|
COPY main.py.tmpl .
|
|
EXPOSE 1212
|
|
CMD ["./server"]
|