Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed May 24, 2023
1 parent 8415b3d commit 434d7d4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ ENV DATABASE_URL=$DATABASE_URL
ENV ACCESS_TOKEN=$ACCESS_TOKEN
ENV REPO_FULL_NAME=$REPO_FULL_NAME

# Copy the Gemfile and Gemfile.lock
COPY Gemfile* ./

# Install dependencies
RUN bundle config set --local without 'development test' && \
bundle install --jobs $(nproc) --retry 3 && \
rm -rf /usr/local/bundle/cache/*.gem

# Copy the rest of the application
COPY . .

# Run the migration and sync GitHub Repo Data scripts
CMD bundle exec rails runner "RetryableRake.db_create" && \
bundle exec rails runner "RetryableRake.db_migrate" && \
Expand Down

0 comments on commit 434d7d4

Please sign in to comment.