fix build and docker-compose

This commit is contained in:
rmanach
2025-11-24 15:58:29 +01:00
parent 4af6fc14c5
commit cd2631787a
6 changed files with 129 additions and 110 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM golang:1.22 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN GOOS=linux go build -o librapi main.go
FROM debian:bookworm-slim
WORKDIR /app
COPY --from=builder /app/librapi .
RUN chmod +x /app/librapi
RUN mkdir -p /app/store
CMD ["./librapi"]