Skip to content

Commit

Permalink
Merge pull request #108 from drawing/master
Browse files Browse the repository at this point in the history
dockerfile add errexit
  • Loading branch information
drawing authored Oct 30, 2023
2 parents 84ba9d7 + d33645d commit 84bcb49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions images/tengine/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ RUN id admin || groupadd -f admin && useradd -m -g admin admin || adduser -D -g

RUN rm -rf /usr/local/nginx/sbin/nginx && chown root:admin /usr/local/tengine/sbin/tengine && chmod 6755 /usr/local/tengine/sbin/tengine

RUN linux_release=`cat /etc/nginx/linux_release || echo "anolisos"`; \
RUN sh -c 'set -o errexit; \
linux_release=`cat /etc/nginx/linux_release || echo "anolisos"`; \
if [[ $linux_release == "alpine" ]] ; then \
apk add geoip libgcc; \
else \
yum install -y epel-release && yum install -y GeoIP GeoIP-devel; \
yum clean all; \
fi
fi'

RUN test ! -d /home/coredump && mkdir /home/coredump && chmod 777 /home/coredump

Expand Down

0 comments on commit 84bcb49

Please sign in to comment.