5367063499
new file: golang.yml
modified: nginx.yml
new file: node.yml
new file: postgres.yml
new file: python.yml
new file: redis.yml
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
# syntax=dhi.io/build:2-alpine3.23
|
|
|
|
contents:
|
|
repositories:
|
|
- https://dl-cdn.alpinelinux.org/alpine/v3.23/main
|
|
- https://dl-cdn.alpinelinux.org/alpine/v3.23/community
|
|
packages:
|
|
- postgresql16
|
|
- postgresql16-client
|
|
- ca-certificates
|
|
- tzdata
|
|
|
|
accounts:
|
|
groups:
|
|
- gid: 65532
|
|
name: postgres
|
|
users:
|
|
- uid: 65532
|
|
gid: 65532
|
|
name: postgres
|
|
run-as: postgres
|
|
|
|
work-dir: /var/lib/postgresql
|
|
|
|
paths:
|
|
- path: /var/lib/postgresql
|
|
type: directory
|
|
uid: 65532
|
|
gid: 65532
|
|
permissions: 0700
|
|
- path: /var/run/postgresql
|
|
type: directory
|
|
uid: 65532
|
|
gid: 65532
|
|
permissions: 0775
|
|
|
|
environment:
|
|
PATH: /usr/lib/postgresql16/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
PGDATA: /var/lib/postgresql/data
|
|
|
|
entrypoint:
|
|
- postgres
|
|
- -D
|
|
- /var/lib/postgresql/data
|
|
|
|
annotations:
|
|
org.opencontainers.image.title: "hardened-postgres"
|
|
org.opencontainers.image.description: "Minimal PostgreSQL 16 image stripped of shell utilities" |