Skip to content

Commit

Permalink
chore(container-image): redirect logs to std in/err
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli authored and lordrip committed Jan 18, 2024
1 parent 89a516c commit 377ac72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM registry.access.redhat.com/ubi8/nginx-122

# Symlinking nginx logs to stdout and stderr for docker log collection
RUN set -x \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

ADD packages/ui/dist .

CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 377ac72

Please sign in to comment.