Changed pnpm->yarn b/c of sporadic build issues
continuous-integration/drone/push Build is passing Details

ref #7
This commit is contained in:
Nicolai Ort 2021-04-06 19:04:44 +02:00
parent c7feec631e
commit 32a51c8cb1
1 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,9 @@
FROM node:15.5.1-alpine3.12 AS build FROM node:15.5.1-alpine3.12 AS build
WORKDIR /app WORKDIR /app
RUN npm i -g pnpm
COPY package.json ./ COPY package.json ./
RUN pnpm i RUN yarn
COPY . ./ COPY . ./
RUN pnpm run build RUN yarn build
# final image # final image
FROM fholzer/nginx-brotli:v1.19.1 AS final FROM fholzer/nginx-brotli:v1.19.1 AS final
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html