ghusta / docker-fakesmtp

:mailbox_with_mail: Another docker image for FakeSMTP (https://github.com/Nilhcem/FakeSMTP)
Other
8 stars 1 forks source link

Rootless container #16

Open ghusta opened 3 weeks ago

ghusta commented 3 weeks ago
ghusta commented 3 weeks ago

Example (with docker init) :

# Create a non-privileged user that the app will run under.
# See https://docs.docker.com/go/dockerfile-user-best-practices/
ARG UID=10001
RUN adduser \
    --disabled-password \
    --gecos "" \
    --home "/nonexistent" \
    --shell "/sbin/nologin" \
    --no-create-home \
    --uid "${UID}" \
    appuser
USER appuser
ghusta commented 3 weeks ago

Notes: