https://github.com/tuananh/containerize
Generate a Dockerfile for your Node.js app
https://github.com/tuananh/containerize
dockerfile npx
Last synced: 11 months ago
JSON representation
Generate a Dockerfile for your Node.js app
- Host: GitHub
- URL: https://github.com/tuananh/containerize
- Owner: tuananh
- License: mit
- Created: 2017-11-15T14:21:20.000Z (about 8 years ago)
- Default Branch: develop
- Last Pushed: 2017-11-15T14:24:34.000Z (about 8 years ago)
- Last Synced: 2025-01-24T16:29:06.384Z (about 1 year ago)
- Topics: dockerfile, npx
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# containerize [](https://npm.im/containerize)
## Usage
```
npx containerize
```
this creates a `Dockerfile` in your working directory
```
FROM bitnami/node:8.9.1-r0 as builder
RUN mkdir -p /app/${name}
WORKDIR /app/${name}
COPY package.json /app/${name}
RUN npm install --production --unsafe
COPY . /app/${name}
FROM bitnami/node:8.9.1-r0-prod
RUN mkdir -p /app/${name}
WORKDIR /app/${name}
COPY --from=builder /app/${name} .
CMD ["node", "${main}"]
```
## License
MIT © [Tuan Anh Tran](https://github.com/tuananh)