feat: container is able to run as non-root

This commit is contained in:
Ploc
2021-12-03 10:35:01 +01:00
committed by Romain Du Chaffaut
parent e17a51d8d5
commit 87efb615bb
3 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -12,8 +12,11 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
RUN adduser -D lutim
COPY --chown=lutim:lutim . /home/lutim
RUN adduser -D lutim \
&& addgroup lutim root
COPY . /home/lutim
RUN chmod -R g+rwX /home/lutim
WORKDIR /home/lutim
RUN /bin/sh /home/lutim/docker/build.sh
Regular → Executable
View File
Regular → Executable
View File