diff --git a/Dockerfile b/Dockerfile index db888cc..a63a615 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM oven/bun:1.0.18-debian as base WORKDIR /app/prasi - RUN apt-get update RUN apt-get install git curl gnupg zip unzip -yq RUN git config --global --add safe.directory /app/prasi/repo diff --git a/bun.lockb b/bun.lockb index ca7bc9c..e69fe52 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/dockerzip b/dockerzip index 60ee6de..547c1fa 100644 Binary files a/dockerzip and b/dockerzip differ diff --git a/package.json b/package.json index c372fcb..dd94c6e 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "bun run --silent --watch ./pkgs/index.ts dev", "prod": "bun run --silent ./pkgs/prod.ts", + "prep": "bun run --silent ./pkgs/docker-prep.ts", "pkgs-upgrade": "bun run --silent ./pkgs/upgrade.ts" }, "workspaces": [ diff --git a/pkgs/docker-prep.ts b/pkgs/docker-prep.ts index 58a7f4e..4cb5fca 100644 --- a/pkgs/docker-prep.ts +++ b/pkgs/docker-prep.ts @@ -4,8 +4,7 @@ import { copyAsync, dirAsync, existsAsync, - removeAsync, - renameAsync, + removeAsync } from "fs-jetpack"; import path from "path"; diff --git a/pkgs/index.ts b/pkgs/index.ts index a0e2222..3f2a9d9 100644 --- a/pkgs/index.ts +++ b/pkgs/index.ts @@ -12,8 +12,6 @@ import { dirAsync, existsAsync } from "fs-jetpack"; import { dir } from "utils/dir"; import { $ } from "execa"; -import "./docker-prep"; - g.mode = process.argv.includes("dev") ? "dev" : "prod"; g.datadir = g.mode === "prod" ? "../data" : ".data";