An open API service indexing awesome lists of open source software.

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

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