Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larvatecn/docker-php
https://github.com/larvatecn/docker-php
docker php
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/larvatecn/docker-php
- Owner: larvatecn
- Created: 2022-01-28T01:14:28.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T20:52:42.000Z (8 months ago)
- Last Synced: 2024-04-29T22:11:41.417Z (8 months ago)
- Topics: docker, php
- Language: Dockerfile
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 基础的PHP镜像
[![Docker Image CI](https://github.com/larvatecn/docker-php/actions/workflows/docker-image.yml/badge.svg)](https://github.com/larvatecn/docker-php/actions/workflows/docker-image.yml)
[![Docker Release](https://github.com/larvatecn/docker-php/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/larvatecn/docker-php/actions/workflows/docker-publish.yml)基础PHP镜像,包含 PHP7.4、PHP8.0、PHP8.1、PHP8.2、PHP8.3。
## 使用
Create a Dockerfile in your PHP project
```bash
FROM FROM ghcr.io/larvatecn/php:7.4
COPY . /app
WORKDIR /app
CMD [ "php", "./your-script.php" ]
``````bash
FROM FROM ghcr.io/larvatecn/php:8.0
COPY . /app
WORKDIR /app
CMD [ "php", "./your-script.php" ]
``````bash
FROM FROM ghcr.io/larvatecn/php:8.1
COPY . /app
WORKDIR /app
CMD [ "php", "./your-script.php" ]
``````bash
FROM FROM ghcr.io/larvatecn/php:8.2
COPY . /app
WORKDIR /app
CMD [ "php", "./your-script.php" ]
``````bash
FROM FROM ghcr.io/larvatecn/php:8.3
COPY . /app
WORKDIR /app
CMD [ "php", "./your-script.php" ]
```