diff options
| author | Adam Soltys <[email protected]> | 2022-09-16 15:58:52 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-24 09:05:08 -0700 |
| commit | df0956ff9813ee15fe28109441fc01c44bf765e9 (patch) | |
| tree | 9366c43d6d3ba7842ba5368559acbe50e5d1877c | |
| parent | 60efe3a4b3eb36a0585392fd2b3ceb60caf14bf2 (diff) | |
| download | coinos-ui-df0956ff9813ee15fe28109441fc01c44bf765e9.tar.gz coinos-ui-df0956ff9813ee15fe28109441fc01c44bf765e9.zip | |
dockerfiles
| -rw-r--r-- | Dockerfile | 11 | ||||
| -rw-r--r-- | Dockerfile.base | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..e1505f53 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM gcr.io/coinos-326717/github.com/coinos/coinos-ui:base + +ARG NODE_ENV=production +ENV NODE_ENV $NODE_ENV + +WORKDIR /app +COPY . . +RUN mv /deps/node_modules /app +RUN pnpm build + +CMD ["node", "build"] diff --git a/Dockerfile.base b/Dockerfile.base new file mode 100644 index 00000000..9d2b1799 --- /dev/null +++ b/Dockerfile.base @@ -0,0 +1,7 @@ +FROM node:18-alpine + +RUN npm i -g pnpm + +WORKDIR /deps +COPY package.json . +RUN NODE_ENV=development pnpm i |
