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.
- Host: GitHub
- URL: https://github.com/mage/mage-docker
- Owner: mage
- Created: 2017-06-29T13:53:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T07:14:57.000Z (about 8 years ago)
- Last Synced: 2025-01-13T15:17:12.106Z (12 months ago)
- Topics: docker, mage, nodejs
- Language: Makefile
- Homepage: https://hub.docker.com/r/mage/mage/
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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.