Prevent running as root user

This commit is contained in:
Fred Boniface
2024-04-16 19:20:19 +01:00
parent 9ef9429511
commit ff98adf1a6
2 changed files with 24 additions and 2 deletions

View File

@@ -5,4 +5,5 @@ RUN go build .
FROM scratch
COPY --from=builder /source/timetable-mgr /bin/timetable-mgr
USER nobody
CMD [ "/bin/timetable-mgr" ]