30 lines
593 B
Docker
30 lines
593 B
Docker
# This docker file sets up the rails app container
|
|
#
|
|
# https://docs.docker.com/reference/builder/
|
|
|
|
FROM niche/ruby-base:0.1
|
|
MAINTAINER Mike Heijmans <parabuzzle@gmail.com>
|
|
|
|
# Add env variables
|
|
ENV PORT 80
|
|
ENV REGISTRY_HOST localhost
|
|
ENV REGISTRY_PORT=5000
|
|
ENV REGISTRY_PROTO=https
|
|
ENV REGISTRY_SSL_VERIFY=true
|
|
|
|
# switch to tmp for handling the bundle
|
|
WORKDIR /tmp
|
|
|
|
# Apply Current Gemfile on top of that
|
|
ADD Gemfile* /tmp/
|
|
RUN bundle install
|
|
|
|
# switch to the application directory for exec commands
|
|
WORKDIR $APP_HOME
|
|
|
|
# Add the app
|
|
ADD . $APP_HOME
|
|
|
|
# Run the app
|
|
CMD bundle exec foreman start
|