Нет описания

Dockerfile 649B

12345678910111213141516171819202122232425262728
  1. FROM golang:1.24 as builder
  2. WORKDIR /app
  3. COPY orborus.go /app/orborus.go
  4. COPY go.mod /app/go.mod
  5. #RUN go get
  6. RUN go mod download
  7. RUN go mod tidy
  8. #RUN go build -v
  9. # Enabled CGO January 2025 (?)
  10. #RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o orborus.
  11. RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app/orborus .
  12. FROM alpine:3.22.1
  13. RUN apk add --no-cache bash tzdata
  14. #COPY --from=builder /app/orborus orborus
  15. COPY --from=builder /app/ /
  16. ENV ENVIRONMENT_NAME=Shuffle \
  17. BASE_URL=http://shuffle-backend:5001 \
  18. DOCKER_API_VERSION=1.40 \
  19. SHUFFLE_OPENSEARCH_URL=https://opensearch:9200
  20. CMD ["./orborus"]