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
|
||||
# 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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user