mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-03-17 10:15:49 -05:00
* fix: filter + pagination state handling hack * fix: use location.pathname * update to go 1.25 * fix: add version to sdk-go.yml --------- Co-authored-by: Alexander Belanger <alexander@hatchet.run>
33 lines
667 B
Docker
33 lines
667 B
Docker
# Base Go environment
|
|
# -------------------
|
|
FROM golang:1.25-alpine as base
|
|
WORKDIR /hatchet
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY /pkg ./pkg
|
|
COPY /internal ./internal
|
|
COPY /api ./api
|
|
COPY /cmd/hatchet-loadtest ./cli
|
|
|
|
# Go build environment
|
|
# --------------------
|
|
FROM base AS build-go
|
|
|
|
RUN go build -a -o ./bin/hatchet-load-test ./cli
|
|
|
|
# Deployment environment
|
|
# ----------------------
|
|
FROM alpine AS deployment
|
|
|
|
WORKDIR /hatchet
|
|
|
|
# openssl and bash needed for admin build
|
|
RUN apk update && apk add --no-cache gcc musl-dev openssl bash ca-certificates tzdata
|
|
|
|
COPY --from=build-go /hatchet/bin/hatchet-load-test /hatchet/
|
|
|
|
CMD /hatchet/hatchet-load-test
|