mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-22 10:26:30 +00:00
Don't run as root
This commit is contained in:
parent
ec2740bbab
commit
b18c621779
1 changed files with 4 additions and 0 deletions
|
@ -15,5 +15,9 @@ RUN set -ex; \
|
||||||
|
|
||||||
COPY --from=build /usr/local/cargo/bin/shiny-robots /usr/local/bin
|
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
|
EXPOSE 8080
|
||||||
CMD /usr/local/bin/shiny-robots
|
CMD /usr/local/bin/shiny-robots
|
||||||
|
|
Loading…
Reference in a new issue