stargate/Dockerfile
Dustin Thomas 1e950b9efc
All checks were successful
/ build (push) Successful in 4m8s
comment dockerfiles
2025-10-27 08:58:56 -05:00

20 lines
458 B
Docker

# build the executable in its own stage. rust is big
FROM rust:alpine AS builder
WORKDIR /usr/src/stargate
# install build dependencies
RUN apk add musl-dev
COPY . .
RUN cargo install --path .
# final image
FROM alpine:3.22
# 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
CMD ["stargate"]