updated to version 4 with podman support

This commit is contained in:
Nick Yeoman 2024-07-18 13:40:36 -07:00
parent fa910780a3
commit 8684050d1d
2 changed files with 10 additions and 9 deletions

View File

@ -1,17 +1,17 @@
########################################################################################################################################
# Documentation: https://git.4lt.ca/4lt/phpcontainer/wiki
# v3.1
# Project: https://git.4lt.ca/4lt/phpcontainer/
# v4
#################################################################################################################################
# Use the PHP base image
# https://hub.docker.com/_/php
FROM php:8.3.7-apache
FROM php:8.3.9-apache
# Set maintainer information
LABEL version="3.1"
LABEL version="4.0"
LABEL maintainer="4 Lights Consulting <info@4lt.ca>"
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
WORKDIR /data

View File

@ -11,11 +11,12 @@ Clone the project: ```git clone git@git.4lt.ca:4lt/phpcontainer.git```
Update the Dockerfile.
Build (be sure to change the version number)
```bash
sudo docker buildx build --no-cache -t 4lights/phpcontainer:v3.1 -t 4lights/phpcontainer:latest --load .
sudo docker login
sudo docker push 4lights/phpcontainer:v4
sudo docker push 4lights/phpcontainer:latest
podman buildx build --no-cache -t 4lights/phpcontainer:v5 -t 4lights/phpcontainer:latest --load .
podman login
podman push 4lights/phpcontainer:v4
podman push 4lights/phpcontainer:latest
```
# References And Notes