mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-13 20:27:01 +00:00
06e73d7a5e
site.webmanifest declared no start_url, so the page that linked it became one and an install started inside a room reopened that room on every launch. It now declares "/", moves out of public/ and takes VITE_APP_TITLE for name and short_name, which shipped empty and leaned on the browser falling back to the title. The frontend Dockerfile now declares that build argument, so the value compose.yml passes stops being dropped.
74 lines
1.4 KiB
Docker
74 lines
1.4 KiB
Docker
FROM node:22-alpine AS frontend-deps
|
|
|
|
USER node
|
|
|
|
WORKDIR /home/frontend/
|
|
|
|
COPY ./src/frontend/package.json ./package.json
|
|
COPY ./src/frontend/package-lock.json ./package-lock.json
|
|
|
|
RUN npm ci
|
|
|
|
COPY .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}
|
|
|
|
RUN npm run build
|
|
|
|
# ---- Front-end image ----
|
|
FROM nginxinc/nginx-unprivileged:1.30.3-alpine3.23 AS frontend-production
|
|
|
|
USER root
|
|
|
|
# Security patches for known CVEs
|
|
RUN apk update && apk upgrade \
|
|
libcrypto3>=3.5.7-r0 \
|
|
libssl3>=3.5.7-r0 \
|
|
musl \
|
|
musl-utils \
|
|
zlib>=1.3.2-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;"]
|