Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (32 sloc)
1.03 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.3.1 | |
| USER root | |
| ENV IPFS_DIST_URL=https://dist.ipfs.io/go-ipfs/v0.4.10/go-ipfs_v0.4.10_linux-amd64.tar.gz \ | |
| IPFS_PATH=/data/ipfs | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nano gnupg | |
| RUN mkdir -p ~/tmp ;\ | |
| wget -qO- ${IPFS_DIST_URL} | tar xz -C ~/tmp/ ;\ | |
| mv ~/tmp/go-ipfs/ipfs /usr/local/bin/ ; rm -rf ~/tmp/* | |
| RUN ipfs --version | |
| RUN mkdir -p /data/ipfs | |
| RUN ipfs init | |
| EXPOSE 8080 | |
| EXPOSE 4001 | |
| ADD ipfs-config.json /data/ipfs/config | |
| RUN mkdir /dll-review-registry | |
| WORKDIR /dll-review-registry | |
| # Copy the Gemfiles and install gems. We copy only these files first so that | |
| # Docker can still use the cached bundle install step, even when other source | |
| # files are changing. | |
| ADD Gemfile /dll-review-registry/Gemfile | |
| ADD Gemfile.lock /dll-review-registry/Gemfile.lock | |
| RUN bundle install | |
| # Now add the rest of the files | |
| ADD . /dll-review-registry | |
| # Import private | |
| RUN gpg --import private-key-MAA.asc | |
| #Set Environemnet Variable | |
| ENV RACK_ENV=docker | |
| # Start server | |
| ENV PORT 4567 | |
| EXPOSE 4567 | |
| CMD ["ruby", "app.rb"] |