Skip to content

Commit

Permalink
chore: reduce number of CVEs in docker image
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Apr 8, 2024
1 parent 6b84ae3 commit 8113934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/substra-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV PYTHONUNBUFFERED=1

RUN apt-get update -y \
&& apt-get install --no-install-recommends -y --only-upgrade gnupg \
&& apt-get install --no-install-recommends -y software-properties-common python3.11 python3-pip gcc python3-dev \
&& apt-get install --no-install-recommends -y software-properties-common python3.11 python3-pip gcc python3-dev ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -52,7 +52,7 @@ COPY ./backend/dev-requirements.txt /usr/src/app/.
RUN pip3 install --prefix /usr/local --no-cache-dir -r dev-requirements.txt
COPY backend/dev-startup.sh .

FROM python:3.11-slim
FROM ubuntu:22.04

ARG VERSION
ENV BACKEND_VERSION=${VERSION:-dev}
Expand Down

0 comments on commit 8113934

Please sign in to comment.