-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
52 lines (40 loc) · 1.63 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu
ARG name="phddns"
ARG summary="花生壳 Linux x86_64 docker 版本"
LABEL description="${summary}" \
maintainer="<[email protected]>" \
app.kubernetes.io/name="${name}" \
org.opencontainers.image.title="${name}" \
org.opencontainers.artifact.description="${summary}" \
org.opencontainers.image.url="hhttps://hub.docker.com/r/olbeta/phddns" \
org.opencontainers.image.source="https://github.com/lichengwu/phddns-docker" \
org.opencontainers.image.authors="<[email protected]>" \
org.opencontainers.image.description="${summary}" \
org.opencontainers.image.licenses="https://hsk.oray.com/"
ENV TZ Asia/Shanghai
ENV ORAY_HOME /usr/local/oray
RUN mkdir -p ${ORAY_HOME}
ARG DEBIAN_FRONTEND noninteractive
# RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN apt-get update
# 设置时区
RUN apt-get install -y apt-utils tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
RUN apt-get install -y wget net-tools psmisc lsb-release bash-completion # 增强补全功能
RUN apt-get autoclean
WORKDIR /tmp
ADD "https://down.oray.com/hsk/linux/phddns_5.2.0_amd64.deb" /tmp/phddns_5.2.0_amd64.deb
RUN dpkg -i /tmp/phddns_5.2.0_amd64.deb && rm /tmp/phddns_5.2.0_amd64.deb
RUN rm /etc/phtunnel.json
RUN cp /usr/bin/phdaemon /usr/bin/phdaemon.bak
WORKDIR /app/
COPY *.sh /app/
RUN chmod +x /app/*.sh
ENV LOG_HTTP_IP '127.0.0.1'
ENV LOG_HTTP_PORT '11011'
RUN mkdir -p /var/log/phddns/
RUN touch /var/log/phddns/phtunnel.log
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD ["phddns", "start"]