You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, This only happens when using # syntax=docker/dockerfile:1.11.0 with version 1.11 and 1.12, it works fine with versions 1.10 and lower
I'm using ubuntu, with docker-desktop Docker version 27.3.1, build ce12230
docker desktop version 4.36.0
Getting this error: ERROR: failed to solve: failed to read downloaded context: failed to load cache key: rpc error: code = Unknown desc = no http response from session for lif43htupzm4oqx75d9a4tqrw
# syntax=docker/dockerfile:1.11.0# check=error=true# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand:# docker build -t my-app .# docker run -d -p 80:80 -p 443:443 --name my-app -e RAILS_MASTER_KEY=<value from config/master.key> my-app# Make sure RUBY_VERSION matches the Ruby version in .ruby-versionARG RUBY_VERSION=3.3.1
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
# Rails app lives hereWORKDIR /rails
# Install base packagesRUN apt-get update -qq && \
apt-get install --no-install-recommends -y curl libjemalloc2 libvips postgresql-client && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives
# Set production environmentENV RAILS_ENV="production" \
BUNDLE_DEPLOYMENT="1" \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development"# Throw-away build stage to reduce size of final imageFROM base AS build
# Install packages needed to build gemsRUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential git libpq-dev pkg-config && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives
# Install application gemsCOPY Gemfile Gemfile.lock ./
RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile
# Copy application codeCOPY . .
# Precompile bootsnap code for faster boot timesRUN bundle exec bootsnap precompile app/ lib/
# Precompiling assets for production without requiring secret RAILS_MASTER_KEYRUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
# Final stage for app imageFROM base
# Copy built artifacts: gems, applicationCOPY --from=build "${BUNDLE_PATH}""${BUNDLE_PATH}"COPY --from=build /rails /rails
# Run and own only the runtime files as a non-root user for securityRUN groupadd --system --gid 1000 rails && \
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
chown -R rails:rails db log storage tmp
USER 1000:1000
# Entrypoint prepares the database.ENTRYPOINT ["/rails/bin/docker-entrypoint"]
# Start the server by default, this can be overwritten at runtimeEXPOSE 3000
CMD ["./bin/rails", "server"]
The text was updated successfully, but these errors were encountered:
Hi, This only happens when using
# syntax=docker/dockerfile:1.11.0
with version1.11
and1.12
, it works fine with versions1.10
and lowerI'm using ubuntu, with docker-desktop
Docker version 27.3.1, build ce12230
docker desktop version
4.36.0
Getting this error:
ERROR: failed to solve: failed to read downloaded context: failed to load cache key: rpc error: code = Unknown desc = no http response from session for lif43htupzm4oqx75d9a4tqrw
I'm running
Error when running docker build:
Here's the docker file:
The text was updated successfully, but these errors were encountered: