aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Earthfile44
1 files changed, 22 insertions, 22 deletions
diff --git a/Earthfile b/Earthfile
index a3f1d09c..f260cbff 100644
--- a/Earthfile
+++ b/Earthfile
@@ -8,24 +8,6 @@ all:
BUILD +lint
BUILD +docker
-deps:
- RUN apk add --update --no-cache sqlite-dev
-
- COPY package.json ./
- COPY bun.lockb ./
-
- RUN bun install
-
-source:
- FROM +deps
-
- COPY src src
- COPY static static
- COPY due_moe_schema.sql due_moe_schema.sql
- COPY svelte.config.js svelte.config.js
- COPY tsconfig.json tsconfig.json
- COPY vite.config.ts vite.config.ts
-
dev:
LOCALLY
@@ -41,6 +23,13 @@ lint:
RUN bun --bun run check
+docker:
+ COPY +build/build .
+
+ CMD ["bun", "--bun", "./index.js"]
+
+ SAVE IMAGE --push fuwn/due-next:latest
+
build:
FROM +source
@@ -50,9 +39,20 @@ build:
SAVE ARTIFACT build
-docker:
- COPY +build/build .
+deps:
+ RUN apk add --update --no-cache sqlite-dev
- CMD ["bun", "--bun", "./index.js"]
+ COPY package.json ./
+ COPY bun.lockb ./
- SAVE IMAGE --push fuwn/due-next:latest
+ RUN bun install
+
+source:
+ FROM +deps
+
+ COPY src src
+ COPY static static
+ COPY due_moe_schema.sql due_moe_schema.sql
+ COPY svelte.config.js svelte.config.js
+ COPY tsconfig.json tsconfig.json
+ COPY vite.config.ts vite.config.ts