diff options
author | Galen Guyer <galen@galenguyer.com> | 2022-04-13 19:10:44 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2022-04-13 19:44:24 -0400 |
commit | 264e571b0ca34d24f4997c5864a43d4f475e14dc (patch) | |
tree | 3ddfb30dbd97dc5c5c3da91a8e1cba4916348190 /Dockerfile | |
parent | 290e1694efacc8bfea62b78538cb9d40003f62f6 (diff) |
full version 2 re-write
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,9 +1,10 @@ -FROM node:12.17 as build-deps +FROM node:16 as build-deps WORKDIR /usr/src/app -COPY package.json yarn.lock ./ -RUN yarn +COPY package.json pnpm-lock.yaml ./ +RUN npm install --global pnpm && \ + pnpm install COPY . ./ -RUN yarn build +RUN pnpm run build FROM cr.galenguyer.com/nginx:spa -COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/ +COPY --from=build-deps /usr/src/app/dist usr/share/nginx/html/ |