From 33b6c6439d473f518d5624f02a43e1b4982c9592 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Tue, 16 Nov 2021 07:43:55 +0000 Subject: [PATCH] comments for Dockerfile --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a810fba..e8a5998 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ +# Node Verion 12 ist für manche Theia Pakete erforderlich. Update muss getestet werden ARG NODE_VERSION=12.22-buster-slim +# Builder Schritt hier wird das Package von Theia compiliert. FROM node:${NODE_VERSION} RUN apt-get update && apt-get install -y wget libsecret-1-dev ARG version=latest @@ -17,11 +19,13 @@ RUN yarn --pure-lockfile && \ yarn autoclean --force && \ yarn cache clean +# Paket erzeugen und Requirements installieren FROM node:${NODE_VERSION} - # Install Python 3 from source ARG VERSION=3.9.8 +# Benötigte Pakete und Python 3 installieren +# Die Packages RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y make build-essential libssl-dev \ @@ -35,9 +39,7 @@ RUN apt-get update \ && make install \ && cd .. \ && rm -rf Python-$VERSION \ - && rm Python-$VERSION.tgz - -RUN apt-get update \ + && rm Python-$VERSION.tgz \ && apt-get install -y libsecret-1-0 \ && apt-get -y install libgs-dev \ && apt-get install -y python-dev python-pip \ @@ -54,12 +56,14 @@ RUN apt-get update \ && rm -rf /tmp/* # Install docker for the container to enable access to a docker host if socket is mounted +# No Docker Deamon is installed at the moment RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.9.tgz \ && tar -xvf docker-20.10.9.tgz docker/docker && cp docker/docker /usr/bin/ - +# Erzeuge Arbeitsverzeichnis in home RUN mkdir -p /home/theia \ && mkdir -p /home/project + ENV HOME /home/theia WORKDIR /home/theia COPY --from=0 /home/theia /home/theia