Skip to content

Commit

Permalink
updated staging dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Hasjanov authored and Oleg Hasjanov committed Jan 4, 2024
1 parent 49b0fd3 commit 4e4cefd
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4e4cefd

Please sign in to comment.