🥲

懐かしいと思ったXPがそうでもなかった

に公開

Windows XPをブラウザ上で動作させる「Win32.run」が公開されていると聞いて動かしてみました
https://gigazine.net/news/20250808-win32-run/

ただ、ローカルで起動するのは若干引けたのでコンテナで実行です

Dockerfileを準備して

FROM node:20-alpine AS builder
WORKDIR /app
ARG REPO_URL="https://github.com/ducbao414/win32.run.git"
ARG REPO_REF="main"
RUN apk add --no-cache git \
 && git clone --depth=1 --branch "$REPO_REF" "$REPO_URL" . \
 && npm ci --no-audit --no-fund \
 && npm run build

FROM node:20-alpine AS runner
WORKDIR /app
COPY --from=builder /app/package*.json ./
RUN npm ci --omit=dev --no-audit --no-fund
COPY --from=builder /app/build ./build
USER node
EXPOSE 3000
CMD ["node", "build/index.js"]

docker composeも準備

services:
  app:
    build:
      context: .
      target: runner
    image: win32run:latest
    ports:
      - "3000:3000"

起動

$ docker compose up -d

なんかそれっぽい画面が出てきたけど、こんな画面みたことないなと思いつつ

懐かしい!!

ん、何か違う、なんだろ?

設定とかは変えれないっぽいし、動かない機能が多々ある
まぁこんなもんか

Discussion