stargate/Dockerfile.rich
Dustin Thomas 9e65f42763
Some checks failed
/ build (push) Failing after 2m31s
/ trivy (push) Has been skipped
oops
2026-01-30 12:48:21 -06:00

23 lines
578 B
Text

# build the executable in its own stage. rust is big
FROM rust:alpine3.23 AS builder
WORKDIR /usr/src/stargate
# install build dependencies
RUN apk add musl-dev
COPY . .
RUN cargo install --features rich --path .
# final image
FROM alpine:3.23
# copy executable from builder image
COPY --from=builder /usr/local/cargo/bin/stargate /usr/local/bin/stargate
# set working directory to /etc/stargate, config file should be included here
WORKDIR /etc/stargate
# include tera templates. TODO: figure out how to include at compile time
COPY templates templates
CMD ["stargate"]