forked from hummingbird-me/kitsu-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (31 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM phusion/baseimage
MAINTAINER Hummingbird Media, Inc.
# Dependencies: PG client
RUN apt-get update && \
apt-get install -y curl git postgresql-contrib libpq-dev && \
rm -rf /var/lib/apt/lists/*
# RVM
RUN command curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \
curl -L https://get.rvm.io | bash -s stable --ruby=2.1.3
# NVM
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.3/install.sh | bash && \
bash -c "source ~/.nvm/nvm.sh && \
nvm install v0.12 && \
nvm alias default v0.12 && \
npm install -g ember-cli bower"
# Hummingbird
WORKDIR /opt/hummingbird
COPY Gemfile /opt/hummingbird/
COPY Gemfile.lock /opt/hummingbird/
RUN bash -c "source /usr/local/rvm/scripts/rvm && \
gem install bundler && \
bundle install"
COPY . /opt/hummingbird
WORKDIR /opt/hummingbird/frontend
RUN bash -c "source ~/.nvm/nvm.sh && \
npm install && \
bower --allow-root install"
EXPOSE 3000
WORKDIR /opt/hummingbird
ENTRYPOINT ["/opt/hummingbird/bin/entrypoint.sh"]
CMD ["bundle", "exec", "foreman", "start", "--env=.env,.dockerenv"]