Sha256: d71b34a4bc6dde479fe3eac327c50ccd41a4aee1b9565ed46d57a7c3fea88a68

Contents?: true

Size: 760 Bytes

Versions: 27

Compression:

Stored size: 760 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

27 entries across 27 versions & 1 rubygems

Version Path
smartcloud-0.0.57 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.56 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.55 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.54 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.53 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.52 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.51 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.50 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.49 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.48 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.47 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.46 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.45 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.44 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.43 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.42 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.41 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.40 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.39 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
smartcloud-0.0.38 lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile