-
Notifications
You must be signed in to change notification settings - Fork 287
/
Dockerfile
40 lines (28 loc) · 1.06 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
## BUILDING
## (from project root directory)
## $ docker build -t owen2345-camaleon-cms .
##
## RUNNING
## $ docker run -p 3000:3000 owen2345-camaleon-cms
##
## CONNECTING
## Lookup the IP of your active docker host using:
## $ docker-machine ip $(docker-machine active)
## Connect to the container at DOCKER_IP:3000
## replacing DOCKER_IP for the IP of your active docker host
FROM gcr.io/stacksmith-images/ubuntu-buildpack:14.04-r07
MAINTAINER Bitnami <[email protected]>
ENV STACKSMITH_STACK_ID="ujruqvm" \
STACKSMITH_STACK_NAME="owen2345/camaleon-cms" \
STACKSMITH_STACK_PRIVATE="1"
RUN bitnami-pkg install ruby-2.3.1-1 --checksum a81395976c85e8b7c8da3c1db6385d0e909bd05d9a3c1527f8fa36b8eb093d84
ENV PATH=/opt/bitnami/ruby/bin:$PATH
## STACKSMITH-END: Modifications below this line will be unchanged when regenerating
# Ruby on Rails template
ENV RAILS_ENV=development
COPY Gemfile* /app/
WORKDIR /app
RUN bundle install --without production
COPY . /app
EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000"]