From 9b484f3f18c7fb4c6d85cb696999271c993e9753 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 12 Jan 2025 00:42:57 -0500 Subject: Updated packages; Docker support for web; Fixed issues with author image --- web/Dockerfile | 9 +++++++++ web/astro.config.mjs | 8 +++++++- web/bun.lockb | Bin 172416 -> 179198 bytes web/package.json | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 web/Dockerfile (limited to 'web') diff --git a/web/Dockerfile b/web/Dockerfile new file mode 100644 index 0000000..e021df4 --- /dev/null +++ b/web/Dockerfile @@ -0,0 +1,9 @@ +FROM oven/bun:latest + +WORKDIR /web + +COPY . . + +RUN bun run build + +ENTRYPOINT ["bun", "run", "/web/dist/server/entry.mjs"] diff --git a/web/astro.config.mjs b/web/astro.config.mjs index 515ddf0..c0fd9ad 100644 --- a/web/astro.config.mjs +++ b/web/astro.config.mjs @@ -3,7 +3,13 @@ import { defineConfig } from 'astro/config'; import react from '@astrojs/react'; +import node from '@astrojs/node'; + // https://astro.build/config export default defineConfig({ - integrations: [react()] + integrations: [react()], + + adapter: node({ + mode: 'standalone' + }) }); diff --git a/web/bun.lockb b/web/bun.lockb index b648049..26b85b4 100644 Binary files a/web/bun.lockb and b/web/bun.lockb differ diff --git a/web/package.json b/web/package.json index 811ab8b..2a7be8a 100644 --- a/web/package.json +++ b/web/package.json @@ -9,6 +9,7 @@ "astro": "astro" }, "dependencies": { + "@astrojs/node": "^9.0.0", "@astrojs/react": "^4.1.3", "@types/react": "^19.0.4", "@types/react-dom": "^19.0.2", -- cgit v1.2.3