Don't run as root

This commit is contained in:
Arnaud Rebts 2020-11-14 13:56:02 +01:00 committed by Cecile Tonglet
parent ec2740bbab
commit b18c621779

View file

@ -15,5 +15,9 @@ RUN set -ex; \
COPY --from=build /usr/local/cargo/bin/shiny-robots /usr/local/bin
RUN useradd -ms /bin/bash -u 1001 deps
WORKDIR /home/deps
USER deps
EXPOSE 8080
CMD /usr/local/bin/shiny-robots