feat(dev): add Podman-based container workflow

- Add Containerfile for running Astro dev server in a container
- Add compose.yml (slirp4netns) for WSL2/rootless compatibility
- Document Podman compose usage and troubleshooting steps in README
- Ignore optional Podman env file in .gitignore
This commit is contained in:
Daisuke Nakahara 2026-01-31 19:54:28 +09:00
parent f6c3aff100
commit cf76a69948
5 changed files with 66 additions and 1 deletions

15
Containerfile Normal file
View file

@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1
FROM node:lts-bookworm-slim
WORKDIR /app
# Install dependencies first (better layer caching)
COPY package.json package-lock.json ./
RUN npm ci
# Copy the rest of the project
COPY . .
EXPOSE 4321
CMD ["npm","run","dev","--","--host","0.0.0.0","--port","4321"]