https://github.com/zacksiri/docker-ruby-node
Dockerfile for building ruby and node base image using alpine
https://github.com/zacksiri/docker-ruby-node
Last synced: 4 months ago
JSON representation
Dockerfile for building ruby and node base image using alpine
- Host: GitHub
- URL: https://github.com/zacksiri/docker-ruby-node
- Owner: zacksiri
- Created: 2016-02-25T06:19:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-07T06:25:47.000Z (over 10 years ago)
- Last Synced: 2025-02-26T05:39:37.127Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Node on Alpine
This will build the base image needed to run any rails app that uses
+ Postgres Database
+ Ruby 2.3.0
+ Node JS from Alpine Packages
## How to Use
Very simple simply do this in your rails app
### Create Dockerfile
Create a `Dockerfile` with the following content
```
FROM codemy/ruby-node
MAINTAINER Your Name
# copy the source to the working dir
COPY . /usr/app
# bundle for production
RUN bundle install --path vendor/bundle --without development test --deployment && \
apk del build_deps
# clean up the apk cache
RUN rm -rf /var/cache/apk/*
```
### Build the docker image
Once you've added the docker file you can build the base image of your app using