A base image for JavaScript development.
348
A base image for JavaScript development.
docker pull mrnehu/base-javascript
The image comes in two flavors:
dev-latest tag defines a just-in-time compilation container, which supports the development workflow by allowing in-place development.prod-latest tag defines an ahead-of-time compilation container, suitable for packaging and distributing an application.latest tag points to prod-latest.dev-latest - in-container developmentThe dev-latest tag supports the development workflow by allowing in-place development.
Mount your project directory to /opt/app, and the container will use your sources. See docker-compose.dev.yml for an example.
The container assumes the existence of a package.json file with a correct main attribute. No particular scripts or dependencies are required.
When starting the container, it will run nodemon to watch for file changes and restart the application respectively.
prod-latest - AoT compilationThe latest tag includes the application in the image.
This workflow requires rebuilding the image each time the source code is modified, but does not require distributing code separately.
The container assumes the existence of a package.json file with the start script. No particular dependencies are required.
Create your own Dockerfile in your project directory as follows:
FROM mrnehu/base-typescript:prod-latest
COPY . .
RUN yarn install
Then, build your container directly or using docker-compose.
Content type
Image
Digest
Size
39.1 MB
Last updated
about 6 years ago
docker pull mrnehu/base-javascript