https://github.com/hyperized/docker-phive
Docker image for Phive
https://github.com/hyperized/docker-phive
Last synced: 7 months ago
JSON representation
Docker image for Phive
- Host: GitHub
- URL: https://github.com/hyperized/docker-phive
- Owner: hyperized
- Created: 2020-01-23T09:14:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T16:17:16.000Z (about 5 years ago)
- Last Synced: 2025-06-04T10:49:05.936Z (8 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phive
Simple, multistage Alpine based https://phar.io/ phive container. Updated monthly
## Usage
## As single temporary container
```bash
docker run \
--interactive \
--tty \
--rm \
--volume $(pwd):/repo \
--workdir=/repo \
hyperized/phive \
phive install
# One-liner
docker run -it --rm -v $(pwd):/repo -w /repo hyperized/phive phive install
```
## As docker-compose service
```yaml
version: "3"
services:
phive:
image: hyperized/phive:latest
restart: 'no'
volumes:
- ./:/repo
- phive:/root/.phive
working_dir: /repo
entrypoint: ["phive"]
volumes:
phive:
```
Run it as:
```bash
docker-compose run --rm phive install
```
**NOTE:** The volume `phive` stores the cached phar files that have been installed by PHIVE, so successive runs process faster.