Skip to content

Commit 0639591

Browse files
authored
Merge pull request #168 from Saurabhkr952/main
Enhancement: Optimize Docker image size to reduce it below 1 GB (#154)
2 parents 6b4f716 + 47833fe commit 0639591

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dockerfiles/Dockerfile.base

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
FROM registry.access.redhat.com/ubi8/ubi
2-
RUN yum install -y python3.8 python3-devel gcc-c++ && yum clean all
3-
COPY requirements.txt requirements.txt
4-
RUN python3.8 -m pip install -r requirements.txt
1+
FROM python:3.8-slim
2+
COPY requirements.txt .
3+
RUN pip install --no-cache-dir -r requirements.txt

0 commit comments

Comments
 (0)