From dbd4611bacaaa2164704f682a9ebfc8287ca6539 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 27 Nov 2023 19:19:07 +0100 Subject: [PATCH] Improved docker --- docker-compose.yml | 5 +---- dockerfile | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 749a616..2e4c6c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,11 +13,8 @@ services: mode: replicated replicas: 1 placement: - constraints: [node.role == manager] + constraints: [node.hostname == sh-gismo] resources: - reservations: - cpus: "0.1" - memory: 20M limits: cpus: "4.0" memory: 4096M diff --git a/dockerfile b/dockerfile index ba5c358..9f81b18 100644 --- a/dockerfile +++ b/dockerfile @@ -21,7 +21,7 @@ RUN sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev l make -j $(nproc) && \ sudo make altinstall && \ python3.10 -m pip install --user --upgrade pip && \ - cd ../ && sudo rm -rf Python-3.10.*/ + cd ../ && sudo rm -rf Python-3.10.*/ && sudo rm Python-3.10.*.tgz # install node RUN sudo apt -y install nodejs