https://github.com/tzapu/development-meteor
A Docker Image that runs Meteor in development mode. Good for testing/debugging your Meteor apps.
https://github.com/tzapu/development-meteor
Last synced: 3 months ago
JSON representation
A Docker Image that runs Meteor in development mode. Good for testing/debugging your Meteor apps.
- Host: GitHub
- URL: https://github.com/tzapu/development-meteor
- Owner: tzapu
- Created: 2016-08-19T18:24:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T11:38:57.000Z (about 8 years ago)
- Last Synced: 2025-01-19T09:12:35.833Z (5 months ago)
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## development-meteor - Docker Runtime for non packaged Meteor Apps
This image is made to run Meteor apps as you would run them locally with `meteor`. It is basically a Node Image with Meteor preinstalled.
This would allow you to deploy a debug version of your app on your server and share it with your team/testers.
To use you would need to add the following to a `Dockerfile` in your Meteor app's root directory:
```
FROM tzapu/development-meteor:1.4.1
WORKDIR /opt/app/
ADD . /opt/app/
RUN meteor npm install
CMD meteor;
```What this does is:
- get the development-meteor image with Meteor version 1.4.1 (will try to provide up to date Meteor versions. you can also use `latest`)
- sets the working directory
- copies all your source files to the working directory
- installs all your `package.json` dependencies
- finally runs MeteorIt is recommended you have a `.dockerignore` file at the same level as your Dockerfile, containing:
```
node_modules
.meteor/dev_bundle
.meteor/local
```To build you would then issue a command like
```
sudo docker build -t user/image-name .
```When you are running this image, do not forget to map a port to internal port 3000 on which Meter's built in webserver will run. Sample run command:
```
sudo docker run -d
-e MAIL_URL=smtp://[email protected]:[email protected]:587
-p 80:3000
--name container-name user/image-name'
```I hope you find it useful.