https://github.com/dsys/alpine-node
:recycle: Base Dockerfile for NPM modules
https://github.com/dsys/alpine-node
Last synced: 3 months ago
JSON representation
:recycle: Base Dockerfile for NPM modules
- Host: GitHub
- URL: https://github.com/dsys/alpine-node
- Owner: dsys
- License: bsd-3-clause
- Created: 2015-12-08T08:00:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T21:52:07.000Z (over 10 years ago)
- Last Synced: 2025-03-14T05:01:55.863Z (over 1 year ago)
- Language: Makefile
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alpine-node
Base Dockerfile for NPM modules.
## Usage
Available on Docker Hub as [pavlov/alpine-node](https://hub.docker.com/r/pavlov/alpine-node).
```dockerfile
FROM pavlov/alpine-node:latest
MAINTAINER Laika
# deps
RUN apk --update add gcc g++ python
# install
RUN mkdir -p /opt/app
WORKDIR /opt/app
COPY . ./
RUN npm install
# clean up
RUN apk del gcc g++ python && \
rm -rf /tmp/* /var/cache/apk/* /root/.npm /root/.npmrc /root/.node-gyp
# run
EXPOSE 80
CMD [ "npm", "start" ]
```
## Development
$ make
## License
[BSD 3-Clause](https://github.com/pavlovml/alpine-node/blob/master/LICENSE)