diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3023ebb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,19 @@ +node_modules +pnpm-lock.yaml +.git +.gitignore +.env +.DS_Store +*.md +LICENSE +Makefile +bin/ +manimations/ +llms/ +.husky +.github +.vscode +themes/ +public/ +target/ +dist/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bcae00d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM ghcr.io/getzola/zola:v0.22.1 AS zola + +COPY . /project +WORKDIR /project +RUN ["zola", "build"] + +FROM ghcr.io/static-web-server/static-web-server:2 +WORKDIR / +COPY --from=zola /project/public /public diff --git a/build.sh b/build.sh deleted file mode 100755 index 17aa776..0000000 --- a/build.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -ZOLA_VERSION=0.22.1 - -echo "Downloading Zola ${ZOLA_VERSION}..." -curl -sLJO "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" - -echo "Extracting Zola..." -tar -xf zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz - -echo "Building site with Zola..." -./zola build - -echo "Build complete! Generated files:" -ls -la public/ \ No newline at end of file diff --git a/wrangler.toml b/wrangler.toml deleted file mode 100644 index 1ae43b1..0000000 --- a/wrangler.toml +++ /dev/null @@ -1,24 +0,0 @@ -name = "andwati-com" -compatibility_date = "2026-04-2" -compatibility_flags = ["nodejs_compat"] - -[build] -command = "./build.sh" - -[assets] -directory = "./public" - -[observability] -enabled = false -head_sampling_rate = 1 - -[observability.logs] -enabled = true -head_sampling_rate = 1 -persist = true -invocation_logs = true - -[observability.traces] -enabled = false -persist = true -head_sampling_rate = 1