2018-09-01 21:03:57 +02:00
|
|
|
FROM python:3.7-slim
|
2018-11-22 10:46:40 +01:00
|
|
|
|
|
|
|
RUN mkdir /app
|
|
|
|
|
2018-10-30 15:59:02 +01:00
|
|
|
RUN apt -y update && \
|
|
|
|
apt -y upgrade && \
|
2018-11-22 10:46:40 +01:00
|
|
|
apt install -y libpq-dev curl wget xz-utils bzip2 git gcc gnupg2 make g++
|
2020-07-02 22:25:49 +02:00
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
2018-10-30 15:59:02 +01:00
|
|
|
RUN apt -y install nodejs
|
|
|
|
RUN npm install -g @angular/cli@latest
|
2016-09-22 17:53:27 +02:00
|
|
|
RUN useradd -m openslides
|
2018-11-22 10:46:40 +01:00
|
|
|
RUN chown -R openslides /app
|
2016-09-22 17:53:27 +02:00
|
|
|
WORKDIR /app
|
2018-06-26 10:08:40 +02:00
|
|
|
COPY . /app
|
2018-11-22 10:46:40 +01:00
|
|
|
RUN rm -rf /app/.virtualenv* && \
|
|
|
|
rm -rf /app/client/node_modules
|
2017-04-27 13:51:02 +02:00
|
|
|
RUN chown -R openslides /app
|
2018-11-22 10:46:40 +01:00
|
|
|
|
|
|
|
# Installing python dependencies
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# installing client
|
2017-04-27 13:51:02 +02:00
|
|
|
USER openslides
|
2018-10-30 15:59:02 +01:00
|
|
|
RUN ng config -g cli.warnings.versionMismatch false && \
|
|
|
|
cd client && \
|
|
|
|
npm install
|
|
|
|
RUN cd client && \
|
2019-02-18 10:37:12 +01:00
|
|
|
npm run build && \
|
2018-11-22 10:46:40 +01:00
|
|
|
./node_modules/.bin/compodoc -t -p src/tsconfig.app.json -n 'OpenSlides Documentation' -d ../openslides/static/doc -e html
|