From cac5ebff3a0b8e9c06adb8fb4f8c480d08be2d06 Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Fri, 1 Aug 2025 00:16:24 -0400 Subject: [PATCH] arm-optimized base images --- Dockerfile | 6 +++--- src/app.tsx | 22 ++++++---------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index c495f4b..d7bddaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # === STAGE 1: Build & Dependencies === -FROM node:22 AS builder +FROM arm64v8/node:22 AS builder WORKDIR /app @@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/app/.vinxi \ pnpm run build # === STAGE 2: Generate Production-only Files === -FROM node:22 AS production_builder +FROM arm64v8/node:22 AS production_builder RUN corepack enable && corepack prepare pnpm@latest --activate # Install jq to process the package.json file. @@ -46,7 +46,7 @@ RUN --mount=type=cache,target=/root/.local/share/pnpm/store/v3 pnpm install --pr RUN --mount=type=cache,target=/root/.local/share/pnpm/store/v3 pnpm prune --prod # === STAGE 3: Final Production Image === -FROM node:22-alpine +FROM arm64v8/node:22-alpine WORKDIR /app diff --git a/src/app.tsx b/src/app.tsx index bf5aa6a..fd3bf12 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -2,21 +2,11 @@ import { createSignal } from "solid-js"; import "./app.css"; export default function App() { - const [count, setCount] = createSignal(0); + const [count, setCount] = createSignal(0); - return ( -
-

Hello world!

- -

- Visit{" "} - - start.solidjs.com - {" "} - to learn how to build SolidStart apps. -

-
- ); + return ( +
+

here be games

+
+ ); }