mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
run with non-root user 1001
This commit is contained in:
@@ -17,6 +17,14 @@
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
|
||||
WORKDIR /work/
|
||||
COPY ${build_dir}/*-runner /work/application
|
||||
RUN chmod 775 /work /work/application
|
||||
|
||||
# set up permissions for user `1001`
|
||||
RUN chmod 775 /work /work/application \
|
||||
&& chown -R 1001 /work \
|
||||
&& chmod -R "g+rwX" /work \
|
||||
&& chown -R 1001:root /work
|
||||
|
||||
EXPOSE 8080
|
||||
USER 1001
|
||||
|
||||
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user