2024-05-31 19:18:17 +00:00
|
|
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/node as build
|
2023-07-01 15:45:44 +00:00
|
|
|
|
|
|
|
RUN apk update && rm -rf /var/cache/apk/*
|
|
|
|
WORKDIR /usr/app
|
|
|
|
COPY . .
|
|
|
|
|
2024-02-16 06:45:01 +00:00
|
|
|
RUN npm config set -- //penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken=glpat-JL_7wSM1QpW7xGfd-oWX
|
|
|
|
RUN npm config set -- //penahub.gitlab.yandexcloud.net/api/v4/projects/43/packages/npm/:_authToken=glpat-JL_7wSM1QpW7xGfd-oWX
|
|
|
|
RUN npm config set @frontend:registry https://penahub.gitlab.yandexcloud.net/api/v4/packages/npm/
|
|
|
|
RUN yarn config set '//penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken' "glpat-JL_7wSM1QpW7xGfd-oWX"
|
|
|
|
RUN yarn config set '//penahub.gitlab.yandexcloud.net/api/v4/projects/:_authToken' "glpat-JL_7wSM1QpW7xGfd-oWX"
|
2023-07-01 15:45:44 +00:00
|
|
|
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
|
2024-05-31 19:18:17 +00:00
|
|
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx as result
|
2023-07-01 15:45:44 +00:00
|
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
|
|
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|