Skip to content

Instantly share code, notes, and snippets.

@erikaheidi
Created July 1, 2022 15:45
Show Gist options
  • Select an option

  • Save erikaheidi/c75d3525e8dac8f5cc0c557f57ae0cef to your computer and use it in GitHub Desktop.

Select an option

Save erikaheidi/c75d3525e8dac8f5cc0c557f57ae0cef to your computer and use it in GitHub Desktop.

Revisions

  1. erikaheidi created this gist Jul 1, 2022.
    31 changes: 31 additions & 0 deletions php81-apko.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    contents:
    repositories:
    - https://dl-cdn.alpinelinux.org/alpine/edge/main
    - https://dl-cdn.alpinelinux.org/alpine/edge/community
    packages:
    - alpine-baselayout
    - php81
    - php81-common
    - php81-curl

    entrypoint:
    command: /usr/bin/php81

    environment:
    PATH: /usr/sbin:/sbin:/usr/bin:/bin

    accounts:
    groups:
    - groupname: php
    gid: 10000
    users:
    - username: php
    uid: 10000
    run-as: php

    paths:
    - path: /home/php
    type: directory
    uid: 10000
    gid: 10000
    permissions: 0o755