From c62843a006b2f32d7bdaa6c418cc6c1c29880d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20Hu=CC=88bner?= Date: Sat, 2 Sep 2023 19:25:02 +0200 Subject: [PATCH] chore: optimizing image --- Dockerfile | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26a93af..0f9eaa7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,9 @@ -# Pull base image -#TODO better base image and structure -FROM ubuntu:22.04 +FROM python:3.10-slim # Labels -LABEL MAINTAINER="Øyvind Nilsen " +LABEL MAINTAINER="Jan-Ole Hübner " -# Setup external package-sources -RUN apt-get update && apt-get install -y \ - python3 \ - python3-dev \ - python3-setuptools \ - python3-pip \ - gcc \ - --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* -# Run pip install -RUN pip install pytz --upgrade -RUN pip install tzdata --upgrade ADD requirenments.txt / RUN pip3 install -r /requirenments.txt # Environment