Resources
006
Local registries when foreign ones stall — packages, images, and archives inside Iran.
DevNeeds · featured
NPM
npm
Node registry when the public one stalls.
npm config set registry https://npm.devneeds.ir/Docker
docker
Hub pulls without foreign routing.
docker pull docker.devneeds.ir/library/node:18-alpinePyPI
pypi
pip installs from inside Iran.
pip install -i https://pypi.devneeds.ir/simple/ djangoHuggingFace
hf
Models and datasets with local cache paths.
export HF_ENDPOINT=https://hf.devneeds.irGo
go
Module proxy when sum.golang.org times out.
export GOPROXY=https://go.devneeds.ir,directAPT
apt
Debian / Ubuntu packages.
deb https://debian.devneeds.ir/debian bookworm mainGitHub / GHCR
gh
Releases and container images.
docker pull ghcr.devneeds.ir/owner/image:tagOther · directory
# Official Node + npm; fall back to DevNeeds if needed
FROM node:18-alpine
WORKDIR /app
RUN npm config set registry https://registry.npmjs.org/ \
&& npm config set fetch-retries 5
COPY package*.json .npmrc ./
RUN npm install --legacy-peer-deps \
|| (npm config set registry https://npm.devneeds.ir/ \
&& npm install --legacy-peer-deps)
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]