docker上的回形针不上传图像?

我在Docker开发环境下使用它时,有一个与回形针的问题,我遵循自述文件中的所有步骤添加图像到现有的模型,一切工作没有错误,但图像不上载本地,即使我试图上传到S3直接和相同的问题没有任何错误和图像缺less文件夹是空的?

我的代码是干净的我试过了泊坞窗,它的作品,有什么build议吗?

提到我甚至尝试过载波,它运作得非常好,但我喜欢用回形针,我发现它更轻量级和function强大。

这是我的Dockerfile

 # Use the barebones version of Ruby 2.3. FROM ruby:2.3.1-slim # Optionally set a maintainer name to let people know who made this image. MAINTAINER Chris de Bruin <chris@studytube.nl> # Install dependencies: # - build-essential: To ensure certain gems can be compiled # - nodejs: Compile assets # - imagemagick: converting images # - file: needed by paperclip # - wkhtmltopdf: generating pdf from html # - libxml2: needed for nokogiri RUN apt-get update && apt-get install -qq -y --no-install-recommends \ build-essential libmysqlclient-dev git-core imagemagick wkhtmltopdf \ libxml2 libxml2-dev libxslt1-dev nodejs file # Set an environment variable to store where the app is installed to inside # of the Docker image. The name matches the project name out of convention only. ENV INSTALL_PATH /backend RUN mkdir -p $INSTALL_PATH # This sets the context of where commands will be ran in and is documented # on Docker's website extensively. WORKDIR $INSTALL_PATH # Ensure gems are cached and only get updated when they change. This will # drastically increase build times when your gems do not change. COPY Gemfile Gemfile COPY Gemfile.lock Gemfile.lock RUN bundle install # Copy in the application code from your work station at the current directory # over to the working directory. COPY . . # Ensure the static assets are exposed through a volume so that nginx can read # in these values later. VOLUME ["$INSTALL_PATH/public"] # The default command that gets ran will be to start the Puma server. CMD bundle exec puma -C config/puma.rb 

所以你应该有你自己的Dockerfile并在你docker-compose.yml使用它