From e6f364881bbf37d33522b0cca84fb432e15d671f Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Sun, 4 Aug 2024 13:24:37 +0200 Subject: [PATCH] minor adj --- delegator.dockerfile | 2 +- docker-compose.yaml | 7 ++----- executor.dockerfile | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/delegator.dockerfile b/delegator.dockerfile index cff9a4d..de39459 100644 --- a/delegator.dockerfile +++ b/delegator.dockerfile @@ -1,4 +1,4 @@ -# Use the official Rust image from the Docker Hub +# Stage 1: Use the official Rust image from the Docker Hub FROM rust:latest # Set the working directory inside the container diff --git a/docker-compose.yaml b/docker-compose.yaml index acb7dd1..f031a70 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,14 +17,11 @@ services: dockerfile: delegator.dockerfile image: zetina-delegator hostname: zetina-delegator - depends_on: - - zetina-runtime - - zetina-executor deploy: resources: limits: - cpus: '10' - memory: '10G' + cpus: '1' + memory: '1G' environment: - RUST_LOG=info networks: diff --git a/executor.dockerfile b/executor.dockerfile index d74802c..584d67d 100644 --- a/executor.dockerfile +++ b/executor.dockerfile @@ -1,8 +1,8 @@ # Use the base runtime image FROM zetina-runtime:latest +# Expose necessary ports +EXPOSE 5678/udp 5679/tcp + # Build RUN cargo build --release --bin zetina-executor - -# Expose necessary ports -EXPOSE 5678/udp 5679/tcp \ No newline at end of file