Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .codepress/dev-server/Dockerfile.web
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by CodePress bootstrap-dev-server.
# Dev-mode image for the "web" frontend (Live Dev Server).
# Edits are preserved, but running /codepress-bootstrap-dev-server again may overwrite them.
FROM public.ecr.aws/docker/library/node:22-bookworm

Check warning on line 4 in .codepress/dev-server/Dockerfile.web

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This image might run with "root" as the default user. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ResearchHub_web&issues=AZ_8qTPhARANJdr3tA26&open=AZ_8qTPhARANJdr3tA26&pullRequest=1024

RUN apt-get update \
&& apt-get install -y --no-install-recommends procps \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Bind and HMR values come from the Live Dev Server runtime.
ENV HOSTNAME=0.0.0.0 \
CODEPRESS_BIND_HOST=0.0.0.0 \
PORT=3000 \
CODEPRESS_HMR_CLIENT_PORT=443 \
CODEPRESS_HMR_PROTOCOL=wss

EXPOSE 3000

# Keep workspace and root binaries available after runtime dependency hydration.
ENV PATH="/app/node_modules/.bin:${PATH}"

# Next.js reads HOSTNAME and PORT directly; its HMR connection follows the preview origin.
CMD ["npm", "run", "dev"]
23 changes: 23 additions & 0 deletions .codepress/dev-server/recipe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"schema_version": 1,
"bootstrapped_at": "2026-08-13T19:44:28Z",
"discovery_branch": "codepress/bootstrap/dev-server/d490d803ac824db5",
"frontends": [
{
"label": "web",
"working_dir": "",
"description": "ResearchHub's public research platform",
"dockerfile_path": ".codepress/dev-server/Dockerfile.web",
"dev_command": "npm run dev",
"prebuild_command": "",
"prebuild_inputs": [],
"framework": "next",
"package_manager": "npm",
"install_command": "npm install",
"dependency_manifests": ["package-lock.json"],
"dev_port": 3000,
"system_packages": ["procps"],
"size": "medium"
}
]
}