aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-30 14:40:16 -0700
committerFuwn <[email protected]>2023-08-30 14:40:16 -0700
commitdd4359bda221cd38f73649b1b31b650ebd321152 (patch)
tree1cd39879f0b1860109eea2150e38733aac66dbc5
parentrevert(docker): runner image as node (diff)
downloaddue.moe-dd4359bda221cd38f73649b1b31b650ebd321152.tar.xz
due.moe-dd4359bda221cd38f73649b1b31b650ebd321152.zip
revert(docker): builder image as node
-rw-r--r--Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index ed163471..a905fa2f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,14 +1,14 @@
-FROM oven/bun:latest as build
+FROM node:18.16-alpine as build
WORKDIR /due
COPY package.json ./
-RUN bun install
+RUN yarn install
COPY ./ ./
-RUN bun run build
+RUN yarn run build
FROM node:18.16-alpine
@@ -18,4 +18,4 @@ COPY --from=build /due .
EXPOSE 4173
-CMD ["node", "run", "preview", "--", "--host", "0.0.0.0"] \ No newline at end of file
+CMD ["yarn", "run", "preview", "--", "--host", "0.0.0.0"] \ No newline at end of file