use the alpine way ;)

This commit is contained in:
Thomas Quandalle
2022-06-16 15:00:24 +02:00
parent afc23daad4
commit c842d7f59a

View File

@@ -69,9 +69,8 @@ FROM alpine:latest
############################
# Protect by non-root user.
RUN mkdir -p /home/kerberosio
RUN useradd -d /home/kerberosio -m -s /bin/bash kerberosio
USER kerberosio
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
#################################
# Copy files from previous images