Skip to content

Commit

Permalink
Using slim docker files to shrink file system size (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Niedermaier <matthias.niedermaier@googlemail.com>
  • Loading branch information
mniedermaier and Matthias Niedermaier authored Aug 31, 2024
1 parent 8ab6702 commit 22908d1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion software/FUXA/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12
FROM debian:12-slim

RUN apt-get update && apt-get install -y \
npm \
Expand Down
2 changes: 1 addition & 1 deletion software/OpenPLC/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12
FROM debian:12-slim

COPY ./OpenPLC_v3/ /CybICS/OpenPLC_v3/
WORKDIR /CybICS/OpenPLC_v3/
Expand Down
4 changes: 3 additions & 1 deletion software/hwio-raspberry/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion software/hwio-virtual/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3-slim

WORKDIR /CybICS
COPY requirements.txt ./
Expand Down
2 changes: 1 addition & 1 deletion software/opcua/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3-slim

WORKDIR /CybICS
COPY requirements.txt ./
Expand Down
4 changes: 2 additions & 2 deletions software/stm32/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12 as build
FROM debian:12-slim as build

RUN apt-get update && apt-get install -y \
make \
Expand All @@ -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 \
Expand Down

0 comments on commit 22908d1

Please sign in to comment.