aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-01 15:17:58 -0800
committerAdam Soltys <[email protected]>2023-12-01 15:17:58 -0800
commitcecb0a605c4c20d1e07ee3d31c9fcd2cbd7f1111 (patch)
treefef443bc1f831c602b1fe4a763f993cdb293690b /Dockerfile
parentf251736e0fb6980de3bcf3cf9e79986e001c6f14 (diff)
downloadcoinos-ui-cecb0a605c4c20d1e07ee3d31c9fcd2cbd7f1111.tar.gz
coinos-ui-cecb0a605c4c20d1e07ee3d31c9fcd2cbd7f1111.zip
optimizing
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 4 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index a451ddad..d045c896 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,11 @@
-FROM node:18-alpine
+FROM oven/bun
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
-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
-
COPY . .
-RUN pnpm build
+RUN bun i
+RUN bun run build
# CMD ["node", "build"]
-CMD ["pnpm", "preview", "--host", "--port", "3000"]
+CMD ["bun", "run", "--bun", "preview", "--host", "--port", "3000"]