Improved docker
All checks were successful
Deploy on push / on-push-deploy_sh-edraft (push) Successful in 8m50s

This commit is contained in:
Sven Heidemann 2023-11-27 19:19:07 +01:00
parent 7634e4f9f5
commit dbd4611bac
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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