ramaid/little-sail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ramaid/little-sail

最新稳定版本:v1.1.2

Composer 安装命令:

composer require ramaid/little-sail

包简介

Unofficial, smaller Alpine based image for Laravel Sail runtimes

README 文档

README

Total Downloads Latest Stable Version License

Little Sail is just an extension for Laravel Sail. Currently, the Laravel Sail PHP image is over ~666mb. This is mostly because it uses the Ubuntu image. For those who would prefer smaller images, I created this extension.

The image generated by this package is around ~284mb. Thats around a 57% decrease in size.

Screenshot 2021-02-28 at 16 14 43

It is a similar image with the same extensions but built using a Linux Alpine base.

Installation

To install, use composer to pull the package:

composer require neo/little-sail --dev

Next, update your projects docker-compose.yml file as follows:

version: '3'
services:
    api:
        build:
            context: ./vendor/laravel/sail/runtimes/8.1             # Replace this
            context: ./vendor/neo/little-sail/runtimes/8.1-alpine   # With this (or 8.0 or 7.4 if thats what you want)
# ...

If you already had Laravel Sail running, you will have to stop the containers, and then delete the sail-8.0/app image and then run sail up again (you can also just change the image name in your docker-compose.yml file).

You can use the nifty command included with the package:

$ ./vendor/bin/dock

Then when the command is done running, you can bring Laravel Sail up again.

Customising Little Sail runtimes

If you want, you can update the Little Sail runtimes to work specifically for you. Run:

$ php artisan little-sail:publish # or sail artisan little-sail:publish

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 6
  • 开发语言: Dockerfile

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固