diff --git a/Dockerfile b/Dockerfile index 318723d..2db04e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN bun install --frozen-lockfile --production # Copy source code COPY . . +# Build the React bundle +RUN bun run build + # Expose port EXPOSE 3001 diff --git a/package.json b/package.json index a419798..3bb8ee6 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "bun --hot server.ts", "start": "bun server.ts", - "build": "bun build public/index.html --outdir ./dist --target browser" + "build": "bun build src/main.tsx --outdir ./public/dist --target browser --minify" }, "devDependencies": { "@types/bun": "latest", diff --git a/public/index.html b/public/index.html index 94b8419..bbad72e 100644 --- a/public/index.html +++ b/public/index.html @@ -4,9 +4,10 @@