aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-18 21:50:49 -0800
committerAdam Soltys <[email protected]>2023-12-18 21:50:49 -0800
commit528670f7e694593ef9f8c901d710545e23b1e65b (patch)
treefafd2025508354be4cbbdaaae993cd66af137adf /Dockerfile
parente1e5f89aff8458ff3dd2f38c98595830396ef19e (diff)
downloadcoinos-ui-528670f7e694593ef9f8c901d710545e23b1e65b.tar.gz
coinos-ui-528670f7e694593ef9f8c901d710545e23b1e65b.zip
bun
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index c5acdb79..74982d30 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,16 @@
-FROM node:21-alpine
+FROM node:21
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
-RUN npm i -g pnpm
+RUN npm i -g bun
WORKDIR /app
ADD package.json .
-RUN --mount=type=cache,target=/root/.local/share/pnpm/store NODE_ENV=development pnpm i
+RUN NODE_ENV=development bun i
COPY . .
-RUN pnpm build
+RUN bun run build
# CMD ["node", "build"]
-CMD ["pnpm", "preview", "--host", "--port", "3000"]
+CMD ["bun", "run", "preview", "--host", "--port", "3000"]