代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/motor-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM ruby:3.2.0-alpine as webpacker
ENV RAILS_ENV=production
ENV NODE_ENV=production
WORKDIR /opt
RUN apk add --no-cache nodejs yarn git build-base python3 && \
gem install shakapacker
COPY ./package.json ./yarn.lock ./
RUN yarn install
COPY ./bin/webpacker ./bin/webpacker
COPY ./config/webpack ./config/webpack
COPY ./config/webpacker.yml ./config/webpacker.yml
COPY ./postcss.config.js ./babel.config.js ./
COPY ./app/packs ./app/packs
RUN echo "gem 'shakapacker'" > Gemfile && ./bin/webpacker
FROM ruby:3.2.0-alpine as assets
WORKDIR /opt
RUN apk add --no-cache nodejs yarn git build-base python3
COPY ./vendor/motor-admin/ui/package.json ./vendor/motor-admin/ui/yarn.lock ./
RUN yarn install
COPY ./vendor/motor-admin/ui ./
RUN yarn build:prod
FROM ruby:3.2.0-alpine as app
ENV RAILS_ENV=production
ENV BUNDLE_WITHOUT="development:test"
WORKDIR /opt/motor-admin
RUN apk add --no-cache freetds-dev sqlite-dev libpq-dev mariadb-dev build-base
COPY ./Gemfile ./Gemfile.lock ./
COPY ./vendor/motor-admin/lib/motor/version.rb ./vendor/motor-admin/lib/motor/version.rb
COPY ./vendor/motor-admin/motor-admin.gemspec ./vendor/motor-admin/motor-admin.gemspec
RUN bundle update --bundler && bundle install && rm -rf ~/.bundle
COPY . ./
COPY --from=assets /opt/dist ./vendor/motor-admin/ui/dist
COPY --from=webpacker /opt/public/packs ./public/packs
RUN bundle exec bootsnap precompile --gemfile app/ lib/
RUN ln -s /opt/motor-admin/bin/motor-admin /usr/local/bin && chmod +x /usr/local/bin/motor-admin
WORKDIR /app
ENV WORKDIR=/app/
CMD motor-admin
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。