Skip to content

Commit

Permalink
fix(*): Fix Hadolint findings
Browse files Browse the repository at this point in the history
- Update debian to bookworm
- pip without cache
- apt without recommends
- fixed version (can be updated by dependabot)
  • Loading branch information
Moep90 committed Mar 17, 2024
1 parent 0f43d62 commit f64f772
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions examples/flower-via-docker-compose/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Python runtime as a parent image
FROM python:3.10-slim-buster
FROM python:3.10-slim-bookworm

# Set the working directory in the container to /app
WORKDIR /app
Expand All @@ -8,12 +8,12 @@ WORKDIR /app
COPY ./requirements.txt /app/requirements.txt

# Install gcc and other dependencies
RUN apt-get update && apt-get install -y \
gcc \
python3-dev && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
gcc=4:8.3.0-1 \
python3-dev=3.7.3-1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt


RUN pip install --no-cache-dir -r requirements.txt
4 changes: 2 additions & 2 deletions examples/flower-via-docker-compose/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flwr==1.7.0
tensorflow==2.13.1
numpy==1.24.3
prometheus_client == 0.19.0
flwr_datasets[vision] == 0.0.2
prometheus_client==0.19.0
flwr_datasets[vision]==0.0.2

0 comments on commit f64f772

Please sign in to comment.