mirror of
https://github.com/suitenumerique/meet.git
synced 2026-10-21 20:15:29 +00:00
458ac90617
Eight eMudhra intermediate CAs were compromised due to weak private keys, and the emSign Root CA - G3 / ECC Root CA - G3 roots have been removed from Mozilla and Chrome trust stores. Update uv, and bump certifi to 2026.10.19 and require ca-certificates >= 20261020-r0 in Alpine/Debian images Node.js has not shipped a fixed bundled root store yet.
73 lines
1.6 KiB
Docker
73 lines
1.6 KiB
Docker
FROM node:22-alpine AS frontend-deps
|
|
|
|
RUN apk upgrade --no-cache ca-certificates
|
|
|
|
USER node
|
|
|
|
WORKDIR /home/frontend/
|
|
|
|
COPY --chown=node:node ./src/frontend/package.json ./package.json
|
|
COPY --chown=node:node ./src/frontend/package-lock.json ./package-lock.json
|
|
|
|
RUN npm ci
|
|
|
|
COPY --chown=node:node .dockerignore ./.dockerignore
|
|
COPY --chown=node:node ./src/frontend/ .
|
|
|
|
### ---- Front-end builder image ----
|
|
FROM frontend-deps AS meet
|
|
|
|
WORKDIR /home/frontend
|
|
|
|
FROM frontend-deps AS meet-dev
|
|
|
|
USER node
|
|
|
|
WORKDIR /home/frontend
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD [ "npm", "run", "dev"]
|
|
|
|
# Tilt will rebuild Meet target so, we dissociate meet and meet-builder
|
|
# to avoid rebuilding the app at every changes.
|
|
FROM meet AS meet-builder
|
|
|
|
WORKDIR /home/frontend
|
|
|
|
ARG VITE_API_BASE_URL
|
|
ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
|
|
|
|
ARG VITE_APP_TITLE
|
|
ENV VITE_APP_TITLE=${VITE_APP_TITLE}
|
|
|
|
ARG VITE_MEDIA_BASE_URL
|
|
ENV VITE_MEDIA_BASE_URL=${VITE_MEDIA_BASE_URL}
|
|
|
|
RUN npm run build
|
|
|
|
# ---- Front-end image ----
|
|
FROM nginxinc/nginx-unprivileged:1.30.5-alpine3.24 AS frontend-production
|
|
|
|
USER root
|
|
RUN apk upgrade --no-cache libexpat && \
|
|
apk add --no-cache --upgrade 'pcre2>=10.49-r0' 'tiff>=4.7.2-r0' \
|
|
'libx11>=1.8.14-r0' 'ca-certificates>=20261020-r0' && \
|
|
apk del curl
|
|
USER nginx
|
|
|
|
# Un-privileged user running the application
|
|
ARG DOCKER_USER
|
|
USER ${DOCKER_USER}
|
|
|
|
COPY --from=meet-builder \
|
|
/home/frontend/dist \
|
|
/usr/share/nginx/html
|
|
|
|
COPY ./src/frontend/default.conf /etc/nginx/conf.d
|
|
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|