An open API service indexing awesome lists of open source software.

https://github.com/mage/mage-docker

Docker image containing all you need to run and build containers for MAGE.
https://github.com/mage/mage-docker

docker mage nodejs

Last synced: 10 months ago
JSON representation

Docker image containing all you need to run and build containers for MAGE.

Awesome Lists containing this project

README

          

mage-docker
===========

Versions are based on official node versions.

## Development mode

During development, you can directly run this container by simply mounting your source code into `/usr/src/app`.

```shell
# Install all dependencies
docker run --rm -it -v "$(pwd):/usr/src/app" mage/mage npm install

# Run MAGE
docker run --rm -it -v "$(pwd):/usr/src/app" mage/mage
```

Generally, you will want to start a bash shell and run your `npm` commands from it.

```shell
docker run --rm -it -v "$(pwd):/usr/src/app" mage/mage bash
```

## Building a custom image

You will likely want to build your own custom image for production use.

```Dockerfile
FROM mage/mage
# Add your custom steps here
```

This image works as an `onbuild` image. Your code will automatically be added to this image,
then `npm install` will be executed to install all dependencies.

License
-------

MIT.