some fixes for docker and migrations

This commit is contained in:
2025-10-31 00:17:48 +01:00
parent 84ec54a893
commit 8d908a0502
13 changed files with 202 additions and 26 deletions
+8 -4
View File
@@ -2,17 +2,21 @@ FROM golang:1.25.2-alpine3.22 AS builder
WORKDIR /app
COPY go.mod ./
COPY server/ ./server/
COPY pkg/ ./pkg/
COPY service_b/go.mod service_b/go.sum ./service_b/
COPY service_b/server/ ./service_b/server/
COPY service_b/internal/ ./service_b/internal/
WORKDIR /app/service_b
RUN go mod download
RUN go build -o /app/service_b ./server/main.go
RUN go build -o /app/bin/service_b ./server/main.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/service_b /app/service_b
COPY --from=builder /app/bin/service_b /app/service_b
EXPOSE 8090