2024-05-31 21:04:00 +00:00
|
|
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/node as build
|
2023-02-21 19:55:00 +00:00
|
|
|
|
|
|
|
RUN apk update && rm -rf /var/cache/apk/*
|
|
|
|
WORKDIR /usr/app
|
2023-10-20 21:18:36 +00:00
|
|
|
COPY . .
|
2023-02-21 19:55:00 +00:00
|
|
|
|
2024-12-22 19:42:42 +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"
|
|
|
|
RUN yarn install --verbose --ignore-scripts --non-interactive && yarn cache clean
|
2023-02-21 19:55:00 +00:00
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
|
2024-05-31 21:04:00 +00:00
|
|
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx as result
|
2023-02-21 19:55:00 +00:00
|
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
|
|
|
COPY admin.conf /etc/nginx/conf.d/default.conf
|
2024-01-21 18:47:54 +00:00
|
|
|
COPY cert.pem /etc/nginx/cert.pem
|
|
|
|
COPY key.pem /etc/nginx/key.pem
|