updated to version 4 with podman support
This commit is contained in:
parent
fa910780a3
commit
8684050d1d
10
Dockerfile
10
Dockerfile
@ -1,17 +1,17 @@
|
|||||||
########################################################################################################################################
|
########################################################################################################################################
|
||||||
# Documentation: https://git.4lt.ca/4lt/phpcontainer/wiki
|
# Project: https://git.4lt.ca/4lt/phpcontainer/
|
||||||
# v3.1
|
# v4
|
||||||
#################################################################################################################################
|
#################################################################################################################################
|
||||||
|
|
||||||
# Use the PHP base image
|
# Use the PHP base image
|
||||||
# https://hub.docker.com/_/php
|
# https://hub.docker.com/_/php
|
||||||
FROM php:8.3.7-apache
|
FROM php:8.3.9-apache
|
||||||
|
|
||||||
# Set maintainer information
|
# Set maintainer information
|
||||||
LABEL version="3.1"
|
LABEL version="4.0"
|
||||||
LABEL maintainer="4 Lights Consulting <info@4lt.ca>"
|
LABEL maintainer="4 Lights Consulting <info@4lt.ca>"
|
||||||
LABEL description="Production-ready PHP Apache container"
|
LABEL description="Production-ready PHP Apache container"
|
||||||
LABEL org.label-schema.vcs-url="https://git.nickyeoman.com/4lt/phpcontainer"
|
LABEL org.label-schema.vcs-url="https://git.4lt.ca/4lt/phpcontainer"
|
||||||
|
|
||||||
# Set working directory and Apache document root
|
# Set working directory and Apache document root
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
@ -11,11 +11,12 @@ Clone the project: ```git clone git@git.4lt.ca:4lt/phpcontainer.git```
|
|||||||
Update the Dockerfile.
|
Update the Dockerfile.
|
||||||
|
|
||||||
Build (be sure to change the version number)
|
Build (be sure to change the version number)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker buildx build --no-cache -t 4lights/phpcontainer:v3.1 -t 4lights/phpcontainer:latest --load .
|
podman buildx build --no-cache -t 4lights/phpcontainer:v5 -t 4lights/phpcontainer:latest --load .
|
||||||
sudo docker login
|
podman login
|
||||||
sudo docker push 4lights/phpcontainer:v4
|
podman push 4lights/phpcontainer:v4
|
||||||
sudo docker push 4lights/phpcontainer:latest
|
podman push 4lights/phpcontainer:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
# References And Notes
|
# References And Notes
|
||||||
|
Loading…
Reference in New Issue
Block a user