1

我有轨 7.0 应用程序 dockernized,这是我的 dockerfile

# syntax=docker/dockerfile:1
FROM ruby:3.0
RUN apt-get update -qq && apt-get install -y nodejs yarn postgresql-client
RUN mkdir /myapp
WORKDIR /myapp
COPY Gemfile /myapp/Gemfile
COPY Gemfile.lock /myapp/Gemfile.lock
RUN bundle install
COPY . /myapp

# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000
# Start the main process.
CMD ["rails", "server", "-b", "0.0.0.0"]

当我试图访问我的入口点时,我得到以下信息

Webpacker::Manifest::MissingEntryError in Marketing#index

可能是我的 docker 文件中没有安装 webpacker 吗?还有什么可能导致这个问题?

我也看到没有manifest.json文件,我可以手动创建吗?

4

0 回答 0