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