forked from qiniu/logkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (17 loc) · 683 Bytes
/
Dockerfile
File metadata and controls
18 lines (17 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM buildpack-deps:jessie-curl
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV LOGKIT_VERSION nightly
RUN wget https://pandora-dl.qiniu.com/logkit_${LOGKIT_VERSION}.tar.gz && tar xvf logkit_${LOGKIT_VERSION}.tar.gz && rm logkit_${LOGKIT_VERSION}.tar.gz
RUN mkdir /app
RUN mkdir /logs
RUN mv _package_linux64_${LOGKIT_VERSION}/public /app/public
RUN mv _package_linux64_${LOGKIT_VERSION}/logkit /app/logkit
RUN mv _package_linux64_${LOGKIT_VERSION}/logkit.conf /app/logkit.conf
RUN sed -i -- 's/localhost//g' /app/logkit.conf
VOLUME /app/confs
VOLUME /logs
VOLUME /app/meta
VOLUME /app/.logkitconfs
EXPOSE 3000
WORKDIR /app
ENTRYPOINT ["/app/logkit","-f","logkit.conf"]