diff options
author | Galen Guyer <galen@galenguyer.com> | 2021-10-29 12:31:16 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2021-10-29 12:31:16 -0400 |
commit | 42beedc21d6a2f6c59252aa5e7e1f1bb332bd18e (patch) | |
tree | bf8cc5ab872895e106c613c729b3aad1ed64ce22 /Dockerfile | |
parent | cd83ac5507bee49c6792effb70bf44f49fc325f0 (diff) |
use yarn in dockerfile
Diffstat (limited to 'Dockerfile')
-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/ |