Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/larvatecn/docker-php


https://github.com/larvatecn/docker-php

docker php

Last synced: 12 days ago
JSON representation

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" ]
```