chore: optimizing image

This commit is contained in:
Jan-Ole Hübner 2023-09-02 19:25:02 +02:00
parent 1e746e7b8d
commit c62843a006

View file

@ -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 <oyvind.nilsen@gmail.com>"
LABEL MAINTAINER="Jan-Ole Hübner <huebner@jan-ole.de>"
# 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