mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Remove attempted cache mount for docker
This doesn't seem to do anything
This commit is contained in:
parent
d8ca63dfe9
commit
42c23beff2
1 changed files with 3 additions and 8 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -15,9 +15,7 @@ FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
|||
WORKDIR /rails
|
||||
|
||||
# Install base packages
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt-get update -qq && \
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
curl \
|
||||
libjemalloc2 \
|
||||
|
|
@ -37,16 +35,13 @@ ENV RAILS_ENV="production" \
|
|||
FROM base AS build
|
||||
|
||||
# Install packages needed to build gems
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt-get update -qq && \
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install --no-install-recommends -y build-essential git pkg-config libpq-dev && \
|
||||
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||
|
||||
# Install application gems
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
RUN --mount=type=cache,target=/var/cache/bundle \
|
||||
bundle install && \
|
||||
RUN bundle install && \
|
||||
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
|
||||
bundle exec bootsnap precompile --gemfile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue