mirror of
https://github.com/Cian-H/simple_blender_server.git
synced 2026-03-22 21:22:44 +00:00
Moved source code to .
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user