Custom DNS
This commit is contained in:
parent
915a431515
commit
11a2796c13
@ -7,15 +7,17 @@ RUN cd cmd/dashboard && go build -o app -ldflags="-s -w"
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
ENV TZ="Asia/Shanghai"
|
ENV TZ="Asia/Shanghai"
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
RUN apk --no-cache --no-progress add \
|
RUN apk --no-cache --no-progress add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
cp "/usr/share/zoneinfo/$TZ" /etc/localtime && \
|
cp "/usr/share/zoneinfo/$TZ" /etc/localtime && \
|
||||||
echo "$TZ" > /etc/timezone
|
echo "$TZ" > /etc/timezone && \
|
||||||
|
chmod +x /entrypoint.sh
|
||||||
WORKDIR /dashboard
|
WORKDIR /dashboard
|
||||||
COPY ./resource ./resource
|
COPY ./resource ./resource
|
||||||
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
|
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
|
||||||
|
|
||||||
VOLUME ["/dashboard/data"]
|
VOLUME ["/dashboard/data"]
|
||||||
EXPOSE 80 5555
|
EXPOSE 80 5555
|
||||||
CMD ["/dashboard/app"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
3
entrypoint.sh
Normal file
3
entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo -e "nameserver 127.0.0.11\nnameserver 8.8.8.8\nnameserver 223.5.5.5\n" > /etc/resolv.conf
|
||||||
|
/dashboard/app
|
Loading…
Reference in New Issue
Block a user