Bumped image dependencies
This commit is contained in:
parent
6fed301721
commit
c1fc13ba29
11
Dockerfile
11
Dockerfile
@ -1,10 +1,11 @@
|
|||||||
FROM node:15.5.1-alpine3.12 AS build
|
FROM registry.odit.services/hub/library/node:18.10.0-alpine3.16 AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json ./
|
COPY package.json *.config.cjs *.config.js ./
|
||||||
RUN yarn
|
RUN npm config set registry https://$NPM_REGISTRY_DOMAIN && npm config set //$NPM_REGISTRY_DOMAIN/:_authToken $NPM_REGISTRY_TOKEN
|
||||||
|
RUN npm i -g pnpm && pnpm i
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN yarn build
|
RUN pnpm build
|
||||||
# final image
|
# final image
|
||||||
FROM fholzer/nginx-brotli:v1.19.1 AS final
|
FROM registry.odit.services/library/nginx-brotli:3.15.130
|
||||||
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html
|
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
Loading…
x
Reference in New Issue
Block a user