mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
* build image * envs for dockerfile * precompiling assets on image build * App server gem to core group
20 lines
No EOL
529 B
Text
20 lines
No EOL
529 B
Text
FROM internetee/ruby:2.7
|
|
LABEL org.opencontainers.image.source=https://github.com/internetee/registry
|
|
ARG YARN_VER='1.22.10'
|
|
ARG RAILS_ENV
|
|
ARG SECRET_KEY_BASE
|
|
|
|
ENV RAILS_ENV "$RAILS_ENV"
|
|
ENV SECRET_KEY_BASE "$SECRET_KEY_BASE"
|
|
|
|
RUN npm install -g yarn@"$YARN_VER"
|
|
|
|
RUN mkdir -p /opt/webapps/app/tmp/pids
|
|
WORKDIR /opt/webapps/app
|
|
COPY Gemfile Gemfile.lock ./
|
|
RUN gem install bundler && bundle config set without 'development test' && bundle install --jobs 20 --retry 5
|
|
COPY . .
|
|
|
|
RUN bundle exec rails assets:precompile
|
|
|
|
EXPOSE 3000 |