Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed May 24, 2023
1 parent 0fdb56d commit 1379936
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM ruby:3.2

# Set the working directory
WORKDIR /github/workspace
WORKDIR /

# Install MySQL client and development libraries
RUN apt-get update -qq && \
Expand All @@ -19,16 +19,13 @@ ENV ACCESS_TOKEN=$ACCESS_TOKEN
ENV REPO_FULL_NAME=$REPO_FULL_NAME

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

# 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 . /github/workspace

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

0 comments on commit 1379936

Please sign in to comment.