15 lines
460 B
Docker
15 lines
460 B
Docker
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/node as build
|
|
|
|
RUN apk update && rm -rf /var/cache/apk/*
|
|
WORKDIR /usr/app
|
|
COPY . .
|
|
|
|
RUN yarn install --verbose --ignore-scripts --non-interactive && yarn cache clean
|
|
RUN yarn build
|
|
|
|
|
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx as result
|
|
WORKDIR /usr/share/nginx/html
|
|
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|