comments for Dockerfile

This commit is contained in:
2021-11-16 07:43:55 +00:00
parent 5ec72a9c2e
commit 33b6c6439d

View File

@@ -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 ARG NODE_VERSION=12.22-buster-slim
# Builder Schritt hier wird das Package von Theia compiliert.
FROM node:${NODE_VERSION} FROM node:${NODE_VERSION}
RUN apt-get update && apt-get install -y wget libsecret-1-dev RUN apt-get update && apt-get install -y wget libsecret-1-dev
ARG version=latest ARG version=latest
@@ -17,11 +19,13 @@ RUN yarn --pure-lockfile && \
yarn autoclean --force && \ yarn autoclean --force && \
yarn cache clean yarn cache clean
# Paket erzeugen und Requirements installieren
FROM node:${NODE_VERSION} FROM node:${NODE_VERSION}
# Install Python 3 from source # Install Python 3 from source
ARG VERSION=3.9.8 ARG VERSION=3.9.8
# Benötigte Pakete und Python 3 installieren
# Die Packages
RUN apt-get update \ RUN apt-get update \
&& apt-get upgrade -y \ && apt-get upgrade -y \
&& apt-get install -y make build-essential libssl-dev \ && apt-get install -y make build-essential libssl-dev \
@@ -35,9 +39,7 @@ RUN apt-get update \
&& make install \ && make install \
&& cd .. \ && cd .. \
&& rm -rf Python-$VERSION \ && rm -rf Python-$VERSION \
&& rm Python-$VERSION.tgz && rm Python-$VERSION.tgz \
RUN apt-get update \
&& apt-get install -y libsecret-1-0 \ && apt-get install -y libsecret-1-0 \
&& apt-get -y install libgs-dev \ && apt-get -y install libgs-dev \
&& apt-get install -y python-dev python-pip \ && apt-get install -y python-dev python-pip \
@@ -54,12 +56,14 @@ RUN apt-get update \
&& rm -rf /tmp/* && rm -rf /tmp/*
# Install docker for the container to enable access to a docker host if socket is mounted # 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 \ 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/ && tar -xvf docker-20.10.9.tgz docker/docker && cp docker/docker /usr/bin/
# Erzeuge Arbeitsverzeichnis in home
RUN mkdir -p /home/theia \ RUN mkdir -p /home/theia \
&& mkdir -p /home/project && mkdir -p /home/project
ENV HOME /home/theia ENV HOME /home/theia
WORKDIR /home/theia WORKDIR /home/theia
COPY --from=0 /home/theia /home/theia COPY --from=0 /home/theia /home/theia