comments for Dockerfile
This commit is contained in:
14
Dockerfile
14
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
|
||||
|
||||
Reference in New Issue
Block a user