Sha256: ebea17d12dbccde1c2ee25adddec9b82e79644050c9d008285faaf928cbe969c

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

FROM ruby:2.6.3-alpine
MAINTAINER Timeboard <hello@timeboard.me>

############### INSTALL RUBY ON RAILS ESSENTIALS ###############

RUN apk add --update tzdata && \
    rm -rf /var/cache/apk/*

# Install bundler and foreman gems
RUN gem install bundler; gem install foreman;

# Generating entrypoint file
RUN echo -e '#!/bin/sh\n\
\n\
cd /code\n\
test -f ./tmp/pids/server.pid && rf ./tmp/pids/server.pid; true\n\
\n\
echo "---------------------------------------------------------------"\n\
echo "-----> Performing bundle install"\n\
bundle install\n\
echo "-----> Compiling Assets"\n\
bundle exec rails assets:precompile\n\
\n\
exec "$@"' >> /entrypoint; chmod +x /entrypoint;

# Set entrypoint
ENTRYPOINT ["/entrypoint"]

# Command to execute at container start
CMD foreman start -f Procfile

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smartcloud-0.0.60 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.59 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.58 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile