Skip to content

Commit

Permalink
Merge pull request #43 from MegaByte875/update_dockerfile
Browse files Browse the repository at this point in the history
update dockerfile
  • Loading branch information
kqzh authored Aug 22, 2023
2 parents 2a8af10 + 7e6c8dd commit d533419
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM ubuntu:20.04

ENV LOGROTATE_ROTATE=5 \
LOGROTATE_SIZE=100M \
TZ=Asia/Shanghai

RUN mkdir -p /usr/local/nebula/bin \
&& mkdir -p /usr/local/certs
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl cron logrotate \
&& apt-get clean all

ENV LOGROTATE_ROTATE= \
LOGROTATE_SIZE=

COPY bin/agent /usr/local/bin/agent
COPY db_playback /usr/local/nebula/bin/db_playback
COPY logrotate.sh /logrotate.sh
Expand Down

0 comments on commit d533419

Please sign in to comment.