Updated base package to use non s6 version
This commit is contained in:
parent
25b6636c08
commit
0dded8cacc
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 5.6 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=5.6
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:5.6-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:5.6
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 7.2 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=7.2
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:7.2-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:7.2
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 7.3 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=7.3
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:7.3-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:7.3
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 7.4 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=7.4
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:7.4-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:7.4
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 8.0 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=8.0
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.0-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.0
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 8.1 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=8.1
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.1-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.1
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 8.2 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=8.2
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.2-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.2
|
|
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push Alpine PHP 8.3 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.alpine
|
|
||||||
build-args: |
|
|
||||||
ALPINE_VERSION=3.19
|
|
||||||
PHP_VERSION=83
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:latest-alpine
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.3-alpine
|
|
|
@ -1,35 +0,0 @@
|
||||||
name: Build and Push Ubuntu PHP 8.3 Image
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build and push image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Login to Docker Winter Access Git Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.winteraccess.id
|
|
||||||
username: aditya.prima
|
|
||||||
password: ${{ secrets.PATOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile.ubuntu
|
|
||||||
build-args: |
|
|
||||||
UBUNTU_VERSION=latest
|
|
||||||
PHP_VERSION=8.3
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:latest
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:latest-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.3-ubuntu
|
|
||||||
git.winteraccess.id/${{ gitea.repository }}:8.3
|
|
|
@ -0,0 +1,110 @@
|
||||||
|
name: Build and Push Alpine PHP 8.3 Image
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and push image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Login to Docker Winter Access Git Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.winteraccess.id
|
||||||
|
username: aditya.prima
|
||||||
|
password: ${{ secrets.PATOKEN }}
|
||||||
|
- name: Build and push 5.6
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.5
|
||||||
|
PHP_VERSION=5
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:5.6-alpine
|
||||||
|
- name: Build and push 7.2
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.9
|
||||||
|
PHP_VERSION=7
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.2-alpine
|
||||||
|
- name: Build and push 7.3
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.10
|
||||||
|
PHP_VERSION=7
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.3-alpine
|
||||||
|
- name: Build and push 7.4
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.13
|
||||||
|
PHP_VERSION=7
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.4-alpine
|
||||||
|
- name: Build and push 8.0
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.16
|
||||||
|
PHP_VERSION=8
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.0-alpine
|
||||||
|
- name: Build and push 8.1
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.18
|
||||||
|
PHP_VERSION=81
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.1-alpine
|
||||||
|
- name: Build and push 8.2
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.18
|
||||||
|
PHP_VERSION=82
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.2-alpine
|
||||||
|
- name: Build and push 8.3
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.alpine
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.19
|
||||||
|
PHP_VERSION=83
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.3-alpine
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:latest-alpine
|
|
@ -0,0 +1,108 @@
|
||||||
|
name: Build and Push Ubuntu PHP 8.3 Image
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and push image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Login to Docker Winter Access Git Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.winteraccess.id
|
||||||
|
username: aditya.prima
|
||||||
|
password: ${{ secrets.PATOKEN }}
|
||||||
|
- name: Build and push 5.6
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=5.6
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:5.6-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:5.6
|
||||||
|
- name: Build and push 7.2
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=7.2
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.2-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.2
|
||||||
|
- name: Build and push 7.4
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=7.4
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.4-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:7.4
|
||||||
|
- name: Build and push 8.0
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=8.0
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.0-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.0
|
||||||
|
- name: Build and push 8.1
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=8.1
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.1-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.1
|
||||||
|
- name: Build and push 8.2
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=8.2
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.2-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.2
|
||||||
|
- name: Build and push 8.3
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.ubuntu
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
PHP_VERSION=8.3
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.3-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:8.3
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:latest-ubuntu
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:latest
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
# PHP 8 == 3.16
|
# PHP 8 == 3.16
|
||||||
# PHP 8.1 == 3.18
|
# PHP 8.1 == 3.18
|
||||||
# PHP 8.2 == 3.18
|
# PHP 8.2 == 3.18
|
||||||
ARG REGISTRY_URL=aprimediet
|
# PHP 8.3 == 3.19
|
||||||
|
ARG BASE_REPO=aprimediet
|
||||||
ARG ALPINE_VERSION=3.19
|
ARG ALPINE_VERSION=3.19
|
||||||
|
|
||||||
FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION}
|
FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION}
|
||||||
|
@ -17,17 +18,11 @@ ENV PHP_VERSION=${PHP_VERSION}
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
# INSTALL PHP APP
|
# INSTALL PHP APP
|
||||||
RUN apk add --update php${PHP_VERSION} php${PHP_VERSION}-common
|
RUN --mount=type=cache,target=/var/cache/apk \
|
||||||
|
apk add --update php${PHP_VERSION} php${PHP_VERSION}-common
|
||||||
|
|
||||||
# CREATE SYMLINKS TO /usr/bin/php IN CASE IT IS NOT EXISTS
|
# CREATE SYMLINKS TO /usr/bin/php IN CASE IT IS NOT EXISTS
|
||||||
RUN ln -ns /usr/bin/php${PHP_VERSION} /usr/bin/php; exit 0
|
RUN ln -ns /usr/bin/php${PHP_VERSION} /usr/bin/php; exit 0
|
||||||
|
|
||||||
# DOWNLOAD AND INSTALL COMPOSER
|
|
||||||
# ADD https://getcomposer.org/installer ./composer-setup.php
|
|
||||||
# RUN php composer-setup.php && mv composer.phar /usr/local/bin/composer && rm -f ./composer-setup.php
|
|
||||||
|
|
||||||
# # CHANGE USER PERMISSION ON /etc/services.d
|
|
||||||
# RUN chmod -R +x /etc/services.d/php-fpm/*
|
|
||||||
|
|
||||||
# CLEAN APK CACHES
|
# CLEAN APK CACHES
|
||||||
RUN rm -vrf /var/cache/apk/*
|
RUN rm -vrf /var/cache/apk/*
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
ARG UBUNTU_VERSION=latest
|
ARG UBUNTU_VERSION=jammy
|
||||||
|
ARG BASE_REPO=git.winteraccess.id/docker
|
||||||
|
|
||||||
FROM aprimediet/ubuntu:${UBUNTU_VERSION}
|
FROM ${BASE_REPO}/ubuntu:${UBUNTU_VERSION}
|
||||||
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
|
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
|
||||||
|
|
||||||
ARG PHP_VERSION=8.3
|
ARG PHP_VERSION=8.3
|
||||||
|
@ -10,14 +11,16 @@ ENV PHP_VERSION=${PHP_VERSION}
|
||||||
# Set workdir at root
|
# Set workdir at root
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
RUN apt -y update && apt -y upgrade && apt -y install \
|
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
|
apt -y update && apt -y upgrade && apt -y install \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
|
|
||||||
# ADD PPA TO INSTALL MULTIPLE PHP VERSIONS
|
# ADD PPA TO INSTALL MULTIPLE PHP VERSIONS
|
||||||
RUN add-apt-repository ppa:ondrej/php && apt -y update
|
RUN add-apt-repository ppa:ondrej/php && apt -y update
|
||||||
|
|
||||||
# INSTALL BASE DEPENDENCIES
|
# INSTALL BASE DEPENDENCIES
|
||||||
RUN apt -y install \
|
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
|
apt -y install \
|
||||||
php${PHP_VERSION}-cli php${PHP_VERSION}-common
|
php${PHP_VERSION}-cli php${PHP_VERSION}-common
|
||||||
|
|
||||||
# CREATE SYMLINKS TO /usr/bin/php IN CASE IT IS NOT EXISTS
|
# CREATE SYMLINKS TO /usr/bin/php IN CASE IT IS NOT EXISTS
|
||||||
|
|
Loading…
Reference in New Issue