aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-10-26 16:10:30 -0700
committerFuwn <[email protected]>2023-10-26 16:10:30 -0700
commit6a22dafdb5e8323f41ba7fb448a5204448a86f80 (patch)
treecfb03d710edd734b2a70a8a42dc63c24e90c1f34 /Dockerfile
parentfeat(badges): errors (diff)
downloaddue.moe-6a22dafdb5e8323f41ba7fb448a5204448a86f80.tar.xz
due.moe-6a22dafdb5e8323f41ba7fb448a5204448a86f80.zip
ci(docker): only copy needed
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index f2a433e2..a5f64bbb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,6 @@ 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 ./
@@ -13,16 +12,15 @@ RUN bun install
COPY ./ ./
RUN mkdir data
-
RUN sqlite3 data/due_moe.sqlite3 < due_moe_schema.sql
-
RUN bun --bun vite build
FROM oven/bun:1.0.1
WORKDIR /due
-COPY --from=build /due .
+COPY --from=build /due/build ./build
+COPY --from=build /due/data ./data
EXPOSE 3000