diff --git a/Dockerfile.staging b/Dockerfile.staging index 08c7f48e3..98aec64da 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -7,18 +7,31 @@ ENV RAILS_ENV "$RAILS_ENV" ENV SECRET_KEY_BASE "$SECRET_KEY_BASE" ENV APP_DBHOST "$APP_DBHOST" -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B -RUN apt-get update +# RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B +# RUN apt-get update +# RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - +# RUN apt-get install -y nodejs + RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - -RUN apt-get install -y nodejs +RUN apt-get install -y --no-install-recommends > /dev/null \ + nodejs=* \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* RUN npm install -g yarn@latest WORKDIR /opt/webapps/app -COPY Gemfile Gemfile.lock ./ +# COPY Gemfile Gemfile.lock ./ +# RUN gem install bundler && bundle config set without 'development test' && bundle install --jobs 20 --retry 5 +# COPY package.json yarn.lock ./ +# RUN yarn install --check-files +# COPY . . +# RUN bundle exec rails assets:precompile + +COPY Rakefile Gemfile Gemfile.lock ./ RUN gem install bundler && bundle config set without 'development test' && bundle install --jobs 20 --retry 5 COPY package.json yarn.lock ./ RUN yarn install --check-files -COPY . . + RUN bundle exec rails assets:precompile EXPOSE 3000