7479831fa8
Bumps nginxinc/nginx-unprivileged from 1.31.1-alpine3.23-slim to 1.31.2-alpine3.23-slim. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
41 lines
1.1 KiB
Docker
41 lines
1.1 KiB
Docker
FROM node:lts-slim AS cvat-ui
|
|
|
|
ENV TERM=xterm \
|
|
LANG='C.UTF-8' \
|
|
LC_ALL='C.UTF-8'
|
|
|
|
# Install dependencies
|
|
RUN npm install -g corepack
|
|
COPY .yarnrc.yml /tmp/
|
|
COPY package.json /tmp/
|
|
COPY yarn.lock /tmp/
|
|
COPY cvat-core/package.json /tmp/cvat-core/
|
|
COPY cvat-canvas/package.json /tmp/cvat-canvas/
|
|
COPY cvat-canvas3d/package.json /tmp/cvat-canvas3d/
|
|
COPY cvat-ui/package.json /tmp/cvat-ui/
|
|
COPY cvat-data/package.json /tmp/cvat-data/
|
|
|
|
# Install common dependencies
|
|
WORKDIR /tmp/
|
|
RUN DISABLE_HUSKY=1 yarn install --immutable
|
|
|
|
# Build source code
|
|
COPY cvat-data/ /tmp/cvat-data/
|
|
COPY cvat-core/ /tmp/cvat-core/
|
|
COPY cvat-canvas3d/ /tmp/cvat-canvas3d/
|
|
COPY cvat-canvas/ /tmp/cvat-canvas/
|
|
COPY cvat-ui/ /tmp/cvat-ui/
|
|
|
|
ARG CLIENT_PLUGINS
|
|
ARG SOURCE_MAPS_ENABLED=false
|
|
|
|
RUN CLIENT_PLUGINS="${CLIENT_PLUGINS}" \
|
|
SOURCE_MAPS_ENABLED="${SOURCE_MAPS_ENABLED}" yarn run build:cvat-ui
|
|
|
|
FROM nginxinc/nginx-unprivileged:1.31.2-alpine3.23-slim
|
|
|
|
# Replace default.conf configuration to remove unnecessary rules
|
|
COPY cvat-ui/react_nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY cvat-ui/robots.txt /usr/share/nginx/html/
|
|
COPY --from=cvat-ui /tmp/cvat-ui/dist /usr/share/nginx/html/
|