Edit Dockerfile.dit
This commit is contained in:
1 parent
243310f75b
commit
42f843b5cc
1 file changed
+17
-9
+17
-9
@@ -1,15 +1,16 @@
|
|||||||
FROM dockerhub.mos.ru/mosos/arbat:15.5 as builder-deps
|
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
|
WORKDIR /usr/src/app
|
||||||
RUN yarn config set "strict-ssl" false
|
RUN npm config set "strict-ssl" false
|
||||||
RUN yarn config set "registry" https://repo-mirror.mos.ru/repository/yarn-central/
|
RUN npm config set "registry" https://repo-mirror.mos.ru/repository/npm-public/
|
||||||
RUN yarn config list
|
RUN npm config list
|
||||||
RUN yarn --ignore-engines install
|
COPY . .
|
||||||
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/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 npm ci
|
||||||
RUN yarn --ignore-engines build
|
RUN npm run build
|
||||||
|
|
||||||
FROM dockerhub.mos.ru/mosos/arbat:15.5
|
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
|
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 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