From 22908d14f69610601c6d88747c02a77394283b58 Mon Sep 17 00:00:00 2001 From: mniedermaier Date: Sun, 1 Sep 2024 00:46:10 +0200 Subject: [PATCH] Using slim docker files to shrink file system size (#53) Co-authored-by: Matthias Niedermaier --- software/FUXA/Dockerfile | 2 +- software/OpenPLC/Dockerfile | 2 +- software/hwio-raspberry/Dockerfile | 4 +++- software/hwio-virtual/Dockerfile | 2 +- software/opcua/Dockerfile | 2 +- software/stm32/Dockerfile | 4 ++-- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/software/FUXA/Dockerfile b/software/FUXA/Dockerfile index 479622c..0cd7738 100644 --- a/software/FUXA/Dockerfile +++ b/software/FUXA/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:12 +FROM debian:12-slim RUN apt-get update && apt-get install -y \ npm \ diff --git a/software/OpenPLC/Dockerfile b/software/OpenPLC/Dockerfile index 58a7076..41386d2 100644 --- a/software/OpenPLC/Dockerfile +++ b/software/OpenPLC/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:12 +FROM debian:12-slim COPY ./OpenPLC_v3/ /CybICS/OpenPLC_v3/ WORKDIR /CybICS/OpenPLC_v3/ diff --git a/software/hwio-raspberry/Dockerfile b/software/hwio-raspberry/Dockerfile index 49e4537..d42d247 100644 --- a/software/hwio-raspberry/Dockerfile +++ b/software/hwio-raspberry/Dockerfile @@ -1,7 +1,9 @@ -FROM python:3 +FROM python:3-slim RUN apt-get update && apt-get install -y \ network-manager \ + gcc \ + make \ && rm -rf /var/lib/apt/lists/* WORKDIR /CybICS diff --git a/software/hwio-virtual/Dockerfile b/software/hwio-virtual/Dockerfile index 7c65d53..1607f91 100644 --- a/software/hwio-virtual/Dockerfile +++ b/software/hwio-virtual/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3-slim WORKDIR /CybICS COPY requirements.txt ./ diff --git a/software/opcua/Dockerfile b/software/opcua/Dockerfile index 8e164fc..9a2656e 100644 --- a/software/opcua/Dockerfile +++ b/software/opcua/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3-slim WORKDIR /CybICS COPY requirements.txt ./ diff --git a/software/stm32/Dockerfile b/software/stm32/Dockerfile index b55cf23..2857dd4 100644 --- a/software/stm32/Dockerfile +++ b/software/stm32/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:12 as build +FROM debian:12-slim as build RUN apt-get update && apt-get install -y \ make \ @@ -8,7 +8,7 @@ WORKDIR /CybICS COPY ./ ./ RUN make -j$(nproc --all) -FROM debian:12 +FROM debian:12-slim WORKDIR /CybICS RUN apt-get update && apt-get install -y \ openocd \