aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 94719c00..f2a433e2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,24 @@
-FROM node:19-bullseye as build
+FROM oven/bun:1.0.1 as build
WORKDIR /due
RUN apt update -y && apt upgrade -y
+RUN apt install sqlite3 -y
+
COPY package.json ./
-RUN yarn install
+RUN bun install
COPY ./ ./
-RUN yarn run build
+RUN mkdir data
+
+RUN sqlite3 data/due_moe.sqlite3 < due_moe_schema.sql
+
+RUN bun --bun vite build
-FROM node:19-bullseye
+FROM oven/bun:1.0.1
WORKDIR /due
@@ -20,4 +26,4 @@ COPY --from=build /due .
EXPOSE 3000
-CMD ["node", "build"] \ No newline at end of file
+CMD ["bun", "./build/index.js"] \ No newline at end of file