2025-08-26 15:42:12: merge [main:42f843b5cc82ee193773cfd42f282de1f6d64f16];
This commit is contained in:
1 parent
49b3e2c32e
commit
3462bbcf06
1 file changed
+17
-9
+17
-9
@@ -1,15 +1,16 @@
|
||||
FROM dockerhub.mos.ru/mosos/arbat:15.5 as builder-deps
|
||||
RUN zypper --no-gpg-checks update -y && zypper --no-gpg-checks install -y nodejs14 yarn
|
||||
RUN zypper --no-gpg-checks update -y && zypper --no-gpg-checks install -y nodejs20 npm20
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
RUN yarn config set "strict-ssl" false
|
||||
RUN yarn config set "registry" https://repo-mirror.mos.ru/repository/yarn-central/
|
||||
RUN yarn config list
|
||||
RUN yarn --ignore-engines install
|
||||
COPY . ./
|
||||
RUN npm config set "strict-ssl" false
|
||||
RUN npm config set "registry" https://repo-mirror.mos.ru/repository/npm-public/
|
||||
RUN npm config list
|
||||
COPY . .
|
||||
RUN sed -i 's/registry.npmjs.org/repo-mirror.mos.ru\/repository\/npm-public/g' package-lock.json
|
||||
RUN sed -i 's/github.com/repo-mirror.mos.ru\/repository\/raw-github/g' package-lock.json
|
||||
RUN sed -i 's/github.com/repo-mirror.mos.ru\/repository\/raw-github/g' package.json
|
||||
RUN sed -i 's/registry.yarnpkg.com/repo-mirror.mos.ru\/repository\/yarn-central/g' yarn.lock
|
||||
RUN yarn --ignore-engines build
|
||||
RUN npm ci
|
||||
RUN npm run build
|
||||
|
||||
FROM dockerhub.mos.ru/mosos/arbat:15.5
|
||||
|
||||
@@ -18,4 +19,11 @@ RUN echo "Europe/Moscow" > /etc/timezone
|
||||
RUN zypper --no-gpg-checks update -y && zypper --no-gpg-checks install -y nginx
|
||||
|
||||
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
||||
COPY --from=build-deps /usr/src/app/build /opt/msp/isp-admin-ui
|
||||
COPY --from=builder-deps /usr/src/app/build /opt/msp/isp-admin-ui
|
||||
|
||||
COPY entrypoint.sh /opt/msp/isp-admin-ui/entrypoint.sh
|
||||
ENTRYPOINT ["/opt/msp/isp-admin-ui/entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user