2023-09-10 12:50:04 +08:00
|
|
|
FROM cgr.dev/chainguard/go:latest AS build
|
2023-09-10 12:35:56 +08:00
|
|
|
COPY . /build/
|
|
|
|
WORKDIR /build
|
2023-09-10 12:50:04 +08:00
|
|
|
RUN make build
|
2023-09-10 12:35:56 +08:00
|
|
|
|
|
|
|
FROM cgr.dev/chainguard/static:latest
|
2023-09-10 12:50:04 +08:00
|
|
|
COPY --from=build /build/tea /tea
|
2023-09-10 12:35:56 +08:00
|
|
|
VOLUME [ "/app" ]
|
2021-03-30 19:13:23 +08:00
|
|
|
ENV HOME="/app"
|
|
|
|
ENTRYPOINT ["/tea"]
|