13 lines
297 B
Docker
13 lines
297 B
Docker
|
|
FROM golang:1.24-alpine AS builder
|
||
|
|
WORKDIR /app
|
||
|
|
COPY shared/ ./shared/
|
||
|
|
COPY auth-service/ ./auth-service/
|
||
|
|
WORKDIR /app/auth-service
|
||
|
|
RUN go build -o /auth-service ./cmd/
|
||
|
|
|
||
|
|
FROM alpine:3.20
|
||
|
|
RUN apk add --no-cache wget
|
||
|
|
COPY --from=builder /auth-service /auth-service
|
||
|
|
EXPOSE 8081
|
||
|
|
CMD ["/auth-service"]
|