change: Improved security and size of container

This commit is contained in:
datalore 2024-02-19 20:57:10 +01:00
parent 4a825d83c7
commit cfc180cb32

View File

@ -2,4 +2,7 @@ FROM archlinux:latest
RUN pacman --noconfirm -Sy gcc make RUN pacman --noconfirm -Sy gcc make
COPY . . COPY . .
RUN make RUN make
RUN pacman --noconfirm -Rnsu gcc make
RUN useradd batstat
USER batstat
CMD [ "build/batstat" ] CMD [ "build/batstat" ]