使用 Rosetta2 构建镜像和运行容器
```
docker build --platform linux/amd64 -t nginx:latest .
docker run --platform linux/amd64 nginx:latest
```
在`docker-compose.yml`中使用
加上 `platform: l...
前一段时间意外看到一种新的技术栈,`tall` ,准备学习一下,用来做点东西。
- Tailwind CSS
- Alpine.js
- Laravel
- Livewire
项目主页
今天构建php-fpm的镜像时,顺便把这套弄起来了,把它装进了容器,按照github的[安装说明](https://github.com/lara...
从一个[开源cms](https://docs.halo.run/getting-started/install/other/traefik "开源cms")中(但它是用java写的,瞬间失去兴趣)不过看到traefik的用法,感觉还挺有趣的,好像比nginx proxy manage更聪明,因为它是跟docker联动的,可以发现服务。以下摘自那个cms的介...
这哥们的构建很有意思,他是把php composer安装的依赖作为单独一层进行了构建,然后也可以同样把前端node安装好的依赖作为另外单独一层,最后从这些构建好的镜像把文件复制过来就可以了。
核心命令是` COPY FROM`
官方说明:[https://docs.docker.com/build/building/multi-stage/](htt...