FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY shared/ ./shared/
COPY washing-service/ ./washing-service/
WORKDIR /app/washing-service
RUN go build -o /washing-service ./cmd/

FROM alpine:3.20
RUN apk add --no-cache wget
COPY --from=builder /washing-service /washing-service
EXPOSE 8084
CMD ["/washing-service"]
