FROM ruby:2.6.3-alpine
WORKDIR /deploy
COPY Gemfile Gemfile.lock ./
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN apk --update add --virtual build_deps build-base ruby-dev libc-dev linux-headers libxml2-dev && \
apk add postgresql-dev libxslt-dev && \
gem install bundler && \
bundle config set without 'development:test:doc' && \
bundle install && \
rm -rf /usr/lib/ruby/gems/*/cache/* && \
apk del build_deps && \
rm -rf /var/cache/apk/* /tmp
COPY ./ ./
ENTRYPOINT ["/deploy/deploy/entry-puma.sh"]
写了一个 dockerfile,镜像构建成功,本地跑也没问题,但是部署了阿里云的 k8s 集群就报 standard_init_linux.go:207: exec user process caused "no such file or directory"
有没有知道这是什么情况。。。