Skip to content

Commit 7a6923f

Browse files
envestccCoderZhi
andauthored
Fix docker build (#4766)
* fixbuild * fixbuild --------- Co-authored-by: CoderZhi <[email protected]>
1 parent dbc19fb commit 7a6923f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,17 @@ RUN mkdir -p $GOPATH/pkg/linux_amd64/github.com/iotexproject/ && \
1919

2020
FROM alpine
2121

22-
RUN apk add --no-cache libstdc++
22+
RUN apk add --no-cache --no-scripts libstdc++ logrotate
2323

2424
RUN mkdir -p /etc/iotex/
2525
COPY --from=build /go/apps/iotex-core/bin/server /usr/local/bin/iotex-server
2626
COPY --from=build /go/apps/iotex-core/bin/actioninjectorv2 /usr/local/bin/iotex-actioninjectorv2
2727
COPY --from=build /go/apps/iotex-core/bin/addrgen /usr/local/bin/iotex-addrgen
2828
COPY --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
3430
RUN mkdir -p /var/lib/
3531
RUN touch /var/lib/logrotate.status
32+
COPY logrotate.conf /etc/logrotate.d/iotex
3633
RUN echo -e "#!/bin/sh\n\n/usr/sbin/logrotate -f /etc/logrotate.d/iotex" > /etc/periodic/daily/logrotate
3734

3835
COPY entrypoint.sh /usr/local/bin

0 commit comments

Comments
 (0)