]> git.puffer.fish Git - matthieu/nova.git/commitdiff
add dockerfile
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Sat, 31 Dec 2022 13:43:42 +0000 (17:43 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Sat, 31 Dec 2022 13:43:42 +0000 (17:43 +0400)
Dockerfile
docker-compose.yaml

index 6d40591b10aee447cfdecce855b55733a879336c..339f77bcc5008913c069e36c30bed24018907a0d 100644 (file)
@@ -1,4 +1,4 @@
-ARG COMPONENT
+
 
 FROM clux/muslrust:stable AS chef
 USER root
@@ -26,7 +26,8 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
 
 # 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}
index c6e8634d88a903b6a267aa92b1a22ea7799be21c..f671f9b5c86b55b1d8f4b33793e602f32b899b31 100644 (file)
@@ -1,7 +1,26 @@
 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