==
This commit is contained in:
parent
6169e03d9a
commit
c99efbe720
@ -1,15 +1,18 @@
|
|||||||
FROM docker.io/library/node:lts-alpine as build
|
FROM docker.io/library/node:lts-alpine as build
|
||||||
|
|
||||||
RUN apk update && rm -rf /var/cache/apk/*
|
RUN apk update && rm -rf /var/cache/apk/*
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm install --force && yarn cache clean
|
RUN npm install --force && yarn cache clean
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
RUN ls build
|
||||||
|
|
||||||
|
|
||||||
FROM gitea.pena/penadevops/container-images/nginx:main as result
|
|
||||||
WORKDIR /usr/share/nginx/html
|
FROM gitea.pena/penadevops/container-images/nginx:main as result
|
||||||
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY fallback.js /usr/share/nginx/html/fallback.js
|
COPY --from=build /usr/app/build/ /usr/share/nginx/html
|
||||||
COPY hub.conf /etc/nginx/conf.d/default.conf
|
RUN ls /usr/share/nginx/html
|
||||||
|
COPY fallback.js /usr/share/nginx/html/fallback.js
|
||||||
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user