aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-11-06 18:33:38 -0800
committerFuwn <[email protected]>2023-11-06 18:33:38 -0800
commit34c7b6f9c437dc525386672af765415e7f18c358 (patch)
tree91159bf56e84943689dbb9cc433908f1649bac6b
parentrefactor(list): move modules to sub-modules (diff)
downloaddue.moe-34c7b6f9c437dc525386672af765415e7f18c358.tar.xz
due.moe-34c7b6f9c437dc525386672af765415e7f18c358.zip
ci(docker): only copy least amount of files
-rw-r--r--.dockerignore38
-rw-r--r--Dockerfile4
2 files changed, 13 insertions, 29 deletions
diff --git a/.dockerignore b/.dockerignore
index f88a9db4..9101df31 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,28 +1,10 @@
-# Misc.
-.DS_Store
-
-# Node.js
-node_modules
-
-# SvelteKit
-/build
-# /.svelte-kit
-/package
-
-# Development
-.env
-.env.*
-!.env.example
-/data
-
-# PNPM
-pnpm-lock.yaml
-
-# NPM
-package-lock.json
-
-# Yarn
-yarn.lock
-
-# Visual Studio Code
-.vscode
+**
+
+!package.json
+!src/
+!static/
+!bun.lockb
+!due_moe_schema.sql
+!svelte.config.js
+!tsconfig.json
+!vite.config.ts \ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index a5f64bbb..47f5a776 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,9 @@ COPY package.json ./
RUN bun install
-COPY ./ ./
+COPY src/ ./src
+COPY static/ ./static
+COPY bun.lockb due_moe_schema.sql svelte.config.js tsconfig.json vite.config.ts ./
RUN mkdir data
RUN sqlite3 data/due_moe.sqlite3 < due_moe_schema.sql