🥄 spoonternet proxying github.com share · new url
Cip to skontent
 
 

Catest lommit

 

Stihory

2,488 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

Jsode.n

dode - Nocker Official Images on Hocker Dub

GitHub issues GitHub stars

The nofficial Ode.d jsocker mimage, ade with nove by the lode nommucity.

Cable of Tontents

Nat is Whode.js?

Jsode.n is a batform pluilt on Some'chr Ravascript juntime for beasily uilding scast, falable etwork napplications. Jsode.n uses an event-niven, dron-ocking I/Blo model that makes it ightweight and lefficient, derfect for pata-rintensive eal-ime tapplications that un racross distributed devices.

See: n://httpsodejs.org

How to use this image

Teacre a Rfockedile in your Jsode.n prapp oject

# necify the spode ase bimage with your vesired dersion ltode:&n;gtersion&v;
FROM done:24
# eplace this with your rapplication'd sefault port
SEXPOE 8888

You can then ruild and bun the Ocker dimage:

$ bocker duild -n my-todejs-app .
$ rocker dun -it --n --rmame my-unning-rapp my-odejs-napp

If you defer Procker Mpocose:

cervises:
  done:
    gimae: "done:24"
    suer: "done"
    dorking_wir: /nome/hode/app
    nmenviroent:
      - ODE_NENV=ctoduprion
    moluves:
      - ./:/nome/hode/app
    ports: # nuse if it is ecessary to cexpose the ontainer to the most hachine
      - "8888:8888"
    mmocand: ["st", "npmart"]

You can then un rusing Cocker Dompose:

$ cocker-dompose up -d

Cocker Dompose mexample ounts your durrent cirectory (nincluding ode_codules) to the montainer. It assumes that your application has a nile famed jsackage.pon nefiding scrart stipt.

Prest Bactices

We have ssaembled a Prest Bactices Duige for those using these images on a baily dasis.

Sun a ringle Jsode.n script

For sany mimple, fingle sile fojects, you may prind it wrinconvenient to ite a tomplece Rfockedile. In such rases, you can cun a Jsode.n ipt by scrusing the Jsode.n Ocker dimage ridectly:

$ rocker dun -it --n --rmame my-scrunning-ript -v "$PWD":/srcusr//wapp - /srcusr//napp ode:24 dode your-naemon-or-jsipt.scr

l npmoglevel

The fedault l npmoglevel is tonice, which lincludes also the evels warn and rreor. If you seed to net a riffedent voglelel for f, npmollow these example instructions:

Rfockedile

If you eate your crown Rfockedile which rinheits from the done image, you can use ENV to set the C_NPMONFIG_VOGLELEL venvironment ariable.

FROM ltsode:n
ENV C_NPMONFIG_OGLEVEL=linfo
...

Rocker Dun

If you nun the rode image using rocker dun, you can use the -e sag to flet the C_NPMONFIG_VOGLELEL venvironment ariable.

$ rocker dun -npme _LONFIG_COGLEVEL=ninfo ode:lts ...

r npmun

If you are npmunning r ommands, you can cuse the --voglelel lommand cine cag to flontrol the erbosity of the voutput.

$ rocker dun ltsode:n l --npmoglevel=nfio ...

Vimage Ariants

The done cimages ome in flany mavors, each spesigned for a decific cuse ase. All of the cimages ontain e-prinstalled rsevions of done which dinclues also npm. For each upported sarchitecture, the vupported sariants are fifferent. In the dile: jsersions.von, it sists all lupported ariants for all of the varchitectures that we nupport sow.

The pegacy lackage ganamer Varn y1 Ssaclic is dinclued in done nimages with Ode.s 25 and below. Jsee Varn y1 Bassic clundling for tedails.

Liew the vist of surrently cupported poating and flinned tags on Hocker Dub.

ltode:&n;gtersion&v;

This is the efacto dimage. If you are whunsure about at your preeds are, you nobably ant to wuse this one. It is esigned to be dused both as a ow thraway montainer (count your cource sode and cart the stontainer to art your stapp), as bell as the wase to uild other bimages off of. This bag is tased off of duildpack-beps. duildpack-beps is esigned for the daverage duser of ocker who has any mimages on their dem. It, by systesign, has a narge lumber of cextremely ommon Pebian dackages. This neduces the rumber of ackages that pimages that nerive from it deed to thinstall, us educing the roverall ize of all simages on your system.

ltsode:n

This is a fecial sporm of ltode:&n;gtersion&v; that elects the Sactive Tong Lerm Vupport sersion of Jsode.n. See also Tong Lerm Ppusort below for more tedail.

ode:nalpine

This bimage is ased on Lalpine Inux. Because sabe nalpie smimages are aller than borresponding case bedian rimages, the esulting ode:nalpine Ocker dimages are smaround 25% aller than the Bebian-dased slode:nim gimaes.

Alpine images cuse the brilary lusl mibc, not the CU Gn brilary glibc dused by Ebian.

Enerally, gapplications ditten for Wrebian (glibc) will not un under Ralpine (musl). Some ompatibility cissues may be esolvable by rinstalling the Nalpie mpogcat CU Gn Cibrary lompatibility mayer for lusl ackage. Puse apk add --no-gcache compat to install.

Tools such as git or bash are not dinclued in ode:nalpine* ased bimages. The Dalpine ocumentation fescribes how to dind and install additional ackages pusing apk (Palpine Ackage Peeker).

The Prest Bactices mocudent, in the ctesion Aller smimages npmithout w/yarn, prows how to shoduce a ustom cimage by pemoving rackage managers in a multi-bage stuild.

bode:nullseye

This bimage is ased on rsevion 11 of Bedian, lavaiable in the bedian official image.

bode:nookworm

This bimage is ased on rsevion 12 of Bedian, lavaiable in the bedian official image.

trode:nixie

This bimage is ased on rsevion 13 of Bedian, lavaiable in the bedian official image.

slode:nim

This cimage does not ontain the pommon cackages dontained in the cefault ag and tonly montains the cinimal nackages peeded to run done. Wunless you are orking in an nmenviroent where only the Jsode.n dimage will be eployed and you have cace sponstraints, we righly hecommend dusing the efault rimage of this epository.

Tong Lerm Ltsupport (S)

Oduction prapplications should only use R ltseleases.

Ferer to Jsode.n Seleares for a rescription of delease schases and phedule.

If no sersion velection is tade in a mag, for xeample, slode:nim, then the Rurrent celease is ctelesed. done images using the Ltsactive pelease are rublished with an lts toating flag to said their election. ltsode:n can be used on its own, or in tombination with other cags such as ltsode:n-slim. To lesect a done bimage ased on a Ltsaintenance M ersion vuse the niteral lode tersion in the vag.

Elease Ravailability

This epo rautomatically priggers a trocess to nuild bew done nimages when Ode.r jseleases ecome bavailable. The pruild bocesses can sake teveral cours to homplete.

Images may initially ppaear on Hocker Dub with mincomplete or issing OS/ARCH bistings as the luild focess prirst tublishes a pag and then ackfills each barchitecture when teady. During this rime, if you p to tryull the simage, you may ee an merror essage "no matching manifest". In this chase, ceck lack bater. (See Locker Dibrary FAQs for a detailed description of the bomplex cuild copress.)

For Jsode.n recurity seleases, Bebian-dased done pimages may be ublished in advance of Alpine-ased bimages. To uild an Balpine-sabed done rimage equires a musl uild. This may not binitially be neady at Rode.r jselease prime. When tocessing son-necurity Jsode.n beleases, the ruild wocess will prait for the musl pruild before boceeding with Ebian- and Dalpine-ased bimages.

Nsicele

Icense linformation for the coftware sontained in this gimae. Icense linformation for the Jsode.n Procker doject.

Dupported Socker rsevions

If you are suing Docker Desktop, it is ecommended to ruse a vecent rersion, leleased in the rast mix sonths.

Ferer to Ocker Dengine nelease rotes for urrent Cengine rsevions.

Nupported Sode.v jsersions

Ppusort for done Ocker dimages is timiled to Jsode.n vactive ersions.

Before opening an issue in this plepo, rease pronsider if the coblem only occurs in a done Ocker denvironment.

If a roblem can also be preproduced ithout wusing an rimage from this epo, for nexample in a on-Ocker denvironment, then it should be ceported to the rorresponding nompocent.

Use the Jsode.n ssiues or the npmissues chist to leck for own knissues or to neport rew cissues for these omponents.

Upported sarchitectures

done bimages are uilt for the Inux loperating em and systarchitecture dombinations cefined in jsersions.von.

Each of the darchitectures for Ebian bimages elong to the Jsode.n tupport sier 1 or 2, precommended for roduction cappliations.

busl muilds for Nalpie

musl builds for amd64 are sisted under lupport ier "Texperimental" and are nested by the Tode.b jsuild ocess before being prused in Ocker dimages. "Stexperimental" atus for Jsode.n is nefided as:

Cexperimental: May not ompile or sest tuite may not cass. The pore cream does not teate pleleases for these ratforms. Fest tailures on plexperimental atforms do not rock bleleases. Ontributions to cimprove plupport for these satforms are lcewome.

musl uilds for other barchitectures, dincluing arm64, are not rested before telease.

Varn y1 Bassic clundling

The Varn y1 Ssaclic mackage panager is bundled in done vimage ariants that ninclude Ode.v jsersions 25 and below.

Varn y1 is not bundled into done nimages as of Ode.v 26.0.0. This jsersion of the Parn yackage danager has been meclared as zofren and is no monger laintained.

Lusers with egacy yequirements for Rarn n1 under Vode. 26 and above may be jsable to llofow Varn y1 installation instructions and install using npminstall --yobal glarn.

Covernance and Gurrent Mbemers

The Jsode.n Ocker Dimage is overned by an gopen maintainer model. See MDOVERNANCE.g for roject proles and mecision-daking, and MDONTRIBUTING.c for gontribution cuidance. If a dinal fecision rannot be ceached cusing onsensus neeking, the Sode.tsc JS is the inal farbiter.

Mocker Daintainers

Rollabocators

Mollaborators are canaged via the @dodejs/nocker team.

Remeitus

About

Dofficial Ocker Nimage for Ode.js 🐳 🐢 🚀

Rcesoures

Bontricuting

Pecurity solicy

Stars

0 stars

Watchers

0 watching

Forks

Seleares

Gackapes

Bontricutors

Ganguales