File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.7.2-alpine3.8
2
2
3
3
LABEL maintainer="Evan Richardson"
4
- LABEL version="1.2 "
4
+ LABEL version="1.3 "
5
5
6
6
WORKDIR /app
7
7
COPY . /app
8
+ COPY ./src/conf/logrotate/tHome /etc/logrotate.d/
8
9
ENV PYTHONPATH=/app/src/python
9
- RUN pip3 install --no-cache-dir --upgrade pip
10
- RUN pip3 install --no-cache-dir -r requirements.txt
10
+ RUN apk --update add --no-cache logrotate \
11
+ && pip3 install --no-cache-dir --upgrade pip \
12
+ && pip3 install --no-cache-dir -r requirements.txt
11
13
# RUN rm -rf /var/cache/apk
12
14
13
15
CMD ["/app/src/bin/tHome-eagle.py" , "-c" , "/app/src/conf" ]
Original file line number Diff line number Diff line change
1
+ /var/log/tHome/*.log {
2
+ weekly
3
+ size 5M
4
+ missingok
5
+ rotate 8
6
+ compress
7
+ delaycompress
8
+ create 644 root root
9
+ }
You can’t perform that action at this time.
0 commit comments