Files
hatchet/build/package/loadtest.dockerfile
Gabe Ruttner 8e80faf2d6 Fe overhaul docs (#1640)
* api changes

* doc changes

* move docs

* generated

* generate

* pkg

* backmerge main

* revert to main

* revert main

* race?

* remove go tests
2025-04-30 14:10:09 -07:00

33 lines
669 B
Docker

# Base Go environment
# -------------------
FROM golang:1.24-alpine as base
WORKDIR /hatchet
COPY go.mod go.sum ./
RUN go mod download
COPY /pkg ./pkg
COPY /internal ./internal
COPY /api ./api
COPY /examples/go/z_v0/loadtest/cli ./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
COPY --from=build-go /hatchet/bin/hatchet-load-test /hatchet/
CMD /hatchet/hatchet-load-test