chore: optimizing image
This commit is contained in:
parent
1e746e7b8d
commit
c62843a006
1 changed files with 2 additions and 16 deletions
18
Dockerfile
18
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 <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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue