File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -19,20 +19,17 @@ RUN mkdir -p $GOPATH/pkg/linux_amd64/github.com/iotexproject/ && \
1919
2020FROM alpine
2121
22- RUN apk add --no-cache libstdc++
22+ RUN apk add --no-cache --no-scripts libstdc++ logrotate
2323
2424RUN mkdir -p /etc/iotex/
2525COPY --from=build /go/apps/iotex-core/bin/server /usr/local/bin/iotex-server
2626COPY --from=build /go/apps/iotex-core/bin/actioninjectorv2 /usr/local/bin/iotex-actioninjectorv2
2727COPY --from=build /go/apps/iotex-core/bin/addrgen /usr/local/bin/iotex-addrgen
2828COPY --from=build /go/apps/iotex-core/bin/ioctl /usr/local/bin/ioctl
2929
30-
31- # logrotate log file daily
32- RUN apk add --no-cache logrotate
33- COPY logrotate.conf /etc/logrotate.d/iotex
3430RUN mkdir -p /var/lib/
3531RUN touch /var/lib/logrotate.status
32+ COPY logrotate.conf /etc/logrotate.d/iotex
3633RUN echo -e "#!/bin/sh\n\n /usr/sbin/logrotate -f /etc/logrotate.d/iotex" > /etc/periodic/daily/logrotate
3734
3835COPY entrypoint.sh /usr/local/bin
You can’t perform that action at this time.
0 commit comments