Files
Claude e89683840a Make Docker Compose the default way to run the server
adb only needs plain outbound TCP to the TV, so it runs fine in a
container with normal bridge networking (no host networking or
privileged mode). Bundles adb into the image via Dockerfile, adds
docker-compose.yml with a persisted data/ volume, and documents two
ways to fold this into another docker-compose-based repo (vendored
build context vs. a published image).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RSVyYcrjrbmrMKT85G4fyn
2026-09-26 14:54:49 +00:00

19 lines
439 B
Docker

FROM node:22-bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends android-tools-adb \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install deps first so this layer is cached unless package.json changes.
COPY server/package.json server/package-lock.json ./server/
RUN cd server && npm ci --omit=dev
COPY server ./server
COPY public ./public
WORKDIR /app/server
EXPOSE 8787
CMD ["node", "src/index.js"]