Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Adds Docker support for running the proxy-fetch-server in a containerized environment using Node.js 22.

Changes

  • Dockerfile: Node.js 22 base image with TypeScript build pipeline

    • Uses npm ci for reproducible dependency installation
    • Builds source files via tsc
    • Runs server via npx @humanwhocodes/proxy-fetch-server
    • Exposes port 8080 (configurable via PORT env var)
  • .dockerignore: Excludes dev artifacts, tests, and build files from container image

  • README.md: Added Docker usage section with build/run examples

Usage

docker build -t proxy-fetch-server .

docker run -p 8080:8080 \
  -e PROXY_FETCH_KEY=secret \
  -e PROXY_URI=http://proxy.example.com:8080 \
  proxy-fetch-server

Required environment variables: PROXY_FETCH_KEY, PROXY_URI
Optional: PORT (default 8080), PROXY_TOKEN

Original prompt

Create a Dockerfile that can run npx @humanwhocodes/proxy-fetch-server inside. It should use Node.js 22.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add Dockerfile for running proxy-fetch-server Add Dockerfile for Node.js 22 runtime Dec 10, 2025
Copilot AI requested a review from nzakas December 10, 2025 23:43
@nzakas nzakas marked this pull request as ready for review December 11, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants