forked from OpenSlides/openslides-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 802 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM node:18.13 as build
ENV NODE_VERSION=18.13.0
WORKDIR /app
COPY client/package.json .
COPY client/package-lock.json .
RUN npm ci
COPY client /app/
# compile the angular project
RUN npm run build
FROM nginx:latest
COPY --from=build /app/dist/client /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/nginx.conf
ARG VERSION=dev
RUN if [ -n "$VERSION" ]; then echo "$VERSION ($(date +%Y-%m-%d))" > /usr/share/nginx/html/assets/version.txt; fi
LABEL org.opencontainers.image.title="OpenSlides Client"
LABEL org.opencontainers.image.description="Web client for OpenSlides which serves as the users main interaction point while using the OpenSlides system. "
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.source="https://github.com/OpenSlides/openslides-client"