arm-optimized base images

This commit is contained in:
2025-08-01 00:16:24 -04:00
parent 5480e2921b
commit cac5ebff3a
2 changed files with 9 additions and 19 deletions

View File

@@ -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

View File

@@ -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 (
<main>
<h1>Hello world!</h1>
<button class="increment" onClick={() => setCount(count() + 1)} type="button">
Clicks: {count()}
</button>
<p>
Visit{" "}
<a href="https://start.solidjs.com" target="_blank">
start.solidjs.com
</a>{" "}
to learn how to build SolidStart apps.
</p>
</main>
);
return (
<main>
<h1>here be games</h1>
</main>
);
}