aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-30 14:53:27 -0700
committerFuwn <[email protected]>2023-08-30 14:53:27 -0700
commit2c6b9c2091ff76f07a6dbc4cd2c7d14298f3c9f5 (patch)
treef111a2a5c86d4e7627a4bb068571152ee51487f5 /Dockerfile
parentrevert(docker): builder image as node (diff)
downloaddue.moe-2c6b9c2091ff76f07a6dbc4cd2c7d14298f3c9f5.tar.xz
due.moe-2c6b9c2091ff76f07a6dbc4cd2c7d14298f3c9f5.zip
ci(docker): use bun through and through
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index a905fa2f..6546e768 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,21 +1,21 @@
-FROM node:18.16-alpine as build
+FROM oven/bun as build
WORKDIR /due
COPY package.json ./
-RUN yarn install
+RUN bun install
COPY ./ ./
-RUN yarn run build
+RUN bun run build
-FROM node:18.16-alpine
+FROM oven/bun
WORKDIR /due
COPY --from=build /due .
-EXPOSE 4173
+EXPOSE 3000
-CMD ["yarn", "run", "preview", "--", "--host", "0.0.0.0"] \ No newline at end of file
+CMD ["bun", "./build/index.js"] \ No newline at end of file