diff options
| author | Adam Soltys <[email protected]> | 2022-09-23 21:15:33 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-24 09:05:08 -0700 |
| commit | 3d79d35d43715d6ddabe28e0c053bf9427a672b2 (patch) | |
| tree | 50ed3bd8a40ba34b2c4633dfe455d180fed2273d /Dockerfile | |
| parent | 10c20e9b5b31db7f3bfba00e0a2a5d82e0a054c5 (diff) | |
| download | coinos-ui-3d79d35d43715d6ddabe28e0c053bf9427a672b2.tar.gz coinos-ui-3d79d35d43715d6ddabe28e0c053bf9427a672b2.zip | |
local docker image build
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,11 +1,15 @@ -FROM gcr.io/coinos-326717/github.com/coinos/coinos-ui:base +FROM node:18-alpine ARG NODE_ENV=production ENV NODE_ENV $NODE_ENV +RUN npm i -g pnpm WORKDIR /app + +COPY package.json . +RUN NODE_ENV=development pnpm i + COPY . . -RUN mv /deps/node_modules /app RUN pnpm build CMD ["node", "build"] |
