diff options
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,10 +1,9 @@ FROM node:12.17 as build-deps -RUN npm i -g pnpm WORKDIR /usr/src/app -COPY package.json ./ -RUN pnpm i +COPY package.json yarn.lock ./ +RUN yarn COPY . ./ -RUN pnpm build +RUN yarn build FROM cr.galenguyer.com/nginx/spa:latest COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/ |