docker compose & Dockerfile

This commit is contained in:
2021-05-23 11:07:13 +00:00
parent 4eb41723cf
commit d0e76cda2a
2 changed files with 27 additions and 4 deletions

View File

@@ -1,11 +1,20 @@
from theiaide/theia-python:latest
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install libgs-dev \
&& rm -rf /var/lib/apt/lists/*
# Install docker for the container to enable access to a docker host if socket is mounted
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.2.tgz \
&& tar -xvf docker-20.10.2.tgz docker/docker && cp docker/docker /usr/bin/
# Install Python requirements to support development
COPY ./requirements.txt .
run pip3 install --upgrade pip && pip3 install -r requirements.txt && pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
#COPY . /home/project
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.2.tgz && tar -xvf docker-20.10.2.tgz docker/docker && cp docker/docker /usr/bin/
run pip3 install --upgrade pip \
&& pip3 install -r requirements.txt \
&& pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
COPY . /home/development
#ENTRYPOINT node /home/theia/src-gen/backend/main.js /home/project/ --hostname=0.0.0.0