e225a57f97
- Removing channels. Going back to a wsgi deployment - Removed server projector code - Autoupdate throttling is now in the client - New communication stack in the client - Adopted all deployment methods: Docker stack and docker compose (prod and dev) - Added autoupdate service as submodule
25 lines
547 B
Docker
25 lines
547 B
Docker
FROM node:13 AS nodejs
|
|
|
|
RUN mkdir -p /build/app
|
|
WORKDIR /build/app
|
|
RUN useradd -m openslides
|
|
RUN chown -R openslides /build/app
|
|
|
|
USER root
|
|
RUN npm install -g @angular/cli@^10
|
|
RUN ng config -g cli.warnings.versionMismatch false
|
|
|
|
USER openslides
|
|
COPY package.json package-lock.json ./
|
|
RUN npm -v
|
|
RUN npm ci
|
|
COPY browserslist *.json ./
|
|
COPY src ./src
|
|
RUN npm run build-to-dir /build/app/static
|
|
|
|
COPY docker/client-version.txt static/
|
|
|
|
FROM nginx
|
|
COPY --from=nodejs /build/app/static /usr/share/nginx/html
|
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|