aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-01 19:56:15 -0800
committerAdam Soltys <[email protected]>2023-12-01 19:56:15 -0800
commit7d9bc1f54dfd04172e8d6d43ebc2efd6f407e833 (patch)
tree8ca4bf9a327971ac5a2db46b049a9f4b95ed6a98 /Dockerfile
parentf0351d072288d603b1a469014d498aaaa5a0911c (diff)
downloadcoinos-ui-7d9bc1f54dfd04172e8d6d43ebc2efd6f407e833.tar.gz
coinos-ui-7d9bc1f54dfd04172e8d6d43ebc2efd6f407e833.zip
back to pnpm
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 7c5373f2..a451ddad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,16 @@
-FROM oven/bun
+FROM node:18-alpine
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
-COPY . .
-RUN bun i
-RUN bun run build
+RUN npm i -g pnpm
+WORKDIR /app
+
+ADD package.json .
+RUN --mount=type=cache,target=/root/.local/share/pnpm/store NODE_ENV=development pnpm i
-WORKDIR /home/bun/app/build
+COPY . .
+RUN pnpm build
-CMD ["bun", "run", "start"]
+# CMD ["node", "build"]
+CMD ["pnpm", "preview", "--host", "--port", "3000"]