Update Dockerfile
This commit is contained in:
parent
380f2b8b6f
commit
79efe911a3
@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine as build
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/node as build
|
||||||
|
|
||||||
RUN apk update && rm -rf /var/cache/apk/*
|
RUN apk update && rm -rf /var/cache/apk/*
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
@ -8,7 +8,7 @@ RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn ca
|
|||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:latest as result
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx as result
|
||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
||||||
COPY hub.conf /etc/nginx/conf.d/default.conf
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user