10 lines
382 B
Docker
10 lines
382 B
Docker
FROM postgres:16.16-alpine3.24
|
|
|
|
# The upstream image bundles gosu built with Go 1.24.6. This service only
|
|
# needs its privilege-dropping behavior, which Alpine's small su-exec provides.
|
|
RUN apk upgrade --no-cache \
|
|
&& apk add --no-cache su-exec \
|
|
&& rm -f /usr/local/bin/gosu /usr/local/bin/su-exec \
|
|
&& ln -s /sbin/su-exec /usr/local/bin/gosu \
|
|
&& gosu nobody true
|