https://github.com/ffissore/docker-node-emberjs
A base image used to run/compile your emberjs apps in a reproducible environment
https://github.com/ffissore/docker-node-emberjs
Last synced: about 2 months ago
JSON representation
A base image used to run/compile your emberjs apps in a reproducible environment
- Host: GitHub
- URL: https://github.com/ffissore/docker-node-emberjs
- Owner: ffissore
- License: mit
- Created: 2016-02-05T17:50:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-06T09:34:55.000Z (about 9 years ago)
- Last Synced: 2024-12-28T02:43:37.193Z (about 1 year ago)
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A base image used to run/compile your emberjs apps in a reproducible environment
In order to avoid filesystem permissions issues (root is the default user used to run programs in docker), create a custom local image, like so:
```
FROM ffissore/docker-node-emberjs:latest
#by adding a user that matches the one used to start docker, we avoid file system permissions issues
ARG USERID
RUN adduser --disabled-login --gecos "" username --uid $USERID
USER $USERID
```
Build it with
```
docker build --build-arg USERID=$(id -u) -t my_custom_node_emberjs_image .
```
And run it with
```
docker run \
-t -i \
--rm \
-p 4200:4200 \
-p 35729:35729 \
-v $(pwd):/app \
-v ~/.npm:/home/username/.npm \
--name=my_app \
my_custom_node_emberjs_image \
/usr/local/bin/ember server
```