[releng/oscp] Move image to python38:slim



commit 4a9e2f8f85f5ef0f62636b898731bd8294954fe8
Author: Andrea Veri <averi redhat com>
Date:   Tue Mar 29 21:56:38 2022 +0200

    Move image to python38:slim

 Dockerfile | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 98be7d1..bdb0984 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,7 @@
-FROM centos:8
+FROM python:3.8-slim
 
-RUN dnf install -y git python3 && \
-    dnf -y clean all --enablerepo='*'
-
-RUN git clone https://gitlab.gnome.org/GNOME/releng.git /opt/releng
-
-RUN groupadd releng -g 1000450000 && \ 
-    useradd releng -g 1000450000 -u 1000450000 -r -l -m
-
-RUN chown -R releng:releng /opt/releng
+RUN apt update && apt install git -y && \
+    apt-get clean && rm -rf /var/lib/apt/lists/* && \
+    git clone https://gitlab.gnome.org/GNOME/releng.git /opt/releng
 
 ENTRYPOINT ["/usr/bin/python3"]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]