Just delete the full cache directory, it isnt needed
This commit is contained in:
@@ -253,11 +253,11 @@ This build secret can then be referenced in the Dockerfile:
|
|||||||
# Copy Gemfiles
|
# Copy Gemfiles
|
||||||
COPY Gemfile Gemfile.lock ./
|
COPY Gemfile Gemfile.lock ./
|
||||||
|
|
||||||
# Install dependencies, including private repositories via access token (then remove git configs with exposed GITHUB_TOKEN)
|
# Install dependencies, including private repositories via access token (then remove bundle cache with exposed GITHUB_TOKEN)
|
||||||
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
||||||
BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \
|
BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \
|
||||||
bundle install && \
|
bundle install && \
|
||||||
find /usr/local/bundle/cache/bundler/git -name "config" -delete
|
rm -rf /usr/local/bundle/cache
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using command arguments for Traefik
|
### Using command arguments for Traefik
|
||||||
|
|||||||
Reference in New Issue
Block a user