Sha256: 6e20a7cfb5ac8e7cf98711e4a77de079eaaa621cafbc58d5a14630ebd2354439
Contents?: true
Size: 1.48 KB
Versions: 8
Compression:
Stored size: 1.48 KB
Contents
# ONLY FOR DEVELOPMENT PURPOSES # dockerfile is not suitable to produce a production-grade docker image FROM ruby:2.5.1 WORKDIR /opt/app ADD https://dl.yarnpkg.com/debian/pubkey.gpg /tmp/yarn-pubkey.gpg RUN apt-key add /tmp/yarn-pubkey.gpg && rm /tmp/yarn-pubkey.gpg RUN echo 'deb http://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list RUN apt-get update && apt-get install -qq -y --no-install-recommends \ build-essential libpq-dev curl RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - RUN apt-get update && apt-get install -qq -y --no-install-recommends nodejs yarn # Install psql client for tests RUN apt-get install -qq -y --no-install-recommends postgresql-client # Install chrome for integration tests RUN curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ && dpkg -i google-chrome.deb || true \ && apt-get install -f -y \ && sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome \ && rm google-chrome.deb # Install additional tools RUN apt-get install -qq -y --no-install-recommends netcat-openbsd vim RUN gem install bundler ENV BUNDLE_PATH /bundle_box/bundle ENV GEM_HOME /bundle_box/bundle ENV PATH /bundle_box/bundle/bin:$PATH # ENV NODE_PATH /bundle_box/node COPY . . # RUN bundle install # RUN yarn install # RUN mv .rbenv-vars.example .rbenv-vars # RUN chmod +x entrypoint.sh # ENV RAILS_ENV=development # ENV PORT=3001 # EXPOSE 3001
Version data entries
8 entries across 8 versions & 1 rubygems