-ARG COMPONENT
+
FROM clux/muslrust:stable AS chef
USER root
# Final os
FROM runtime-base AS runtime
+ARG COMPONENT
+ENV COMPONENT=${COMPONENT}
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/${COMPONENT} /usr/local/bin/
USER nova
-ENV COMPONENT ${COMPONENT}
-CMD /usr/local/bin/${COMPONENT}
+ENTRYPOINT /usr/local/bin/${COMPONENT}
version: "3.3"
services:
cache:
+ image: ghcr.io/discordnova/nova/cache
build:
context: .
args:
- COMPONENT=cache
+ gateway:
+ image: ghcr.io/discordnova/nova/gateway
+ build:
+ context: .
+ args:
+ - COMPONENT=gateway
+ rest:
+ image: ghcr.io/discordnova/nova/rest
+ build:
+ context: .
+ args:
+ - COMPONENT=rest
+ webhook:
+ image: ghcr.io/discordnova/nova/webhook
+ build:
+ context: .
+ args:
+ - COMPONENT=webhook