some fixes for docker and migrations
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user