Skip to content

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

Notifications You must be signed in to change notification settings

mage/mage-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

# 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.

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.

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published