mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-08 05:19:56 +00:00
chore(docker): Compatible with nerdctl build
Compatible with nerdctl build Signed-off-by: kovacs <mritd@linux.com>
This commit is contained in:
parent
e338ed60cb
commit
80779d76c0
@ -26,7 +26,7 @@ LABEL maintainer="mritd <mritd@linux.com>"
|
|||||||
# set up nsswitch.conf for Go's "netgo" implementation
|
# set up nsswitch.conf for Go's "netgo" implementation
|
||||||
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
|
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
|
||||||
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
|
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
|
||||||
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
|
RUN if [ ! -e /etc/nsswitch.conf ]; then echo 'hosts: files dns' > /etc/nsswitch.conf; fi
|
||||||
|
|
||||||
# bash is used for debugging, tzdata is used to add timezone information.
|
# bash is used for debugging, tzdata is used to add timezone information.
|
||||||
# Install ca-certificates to ensure no CA certificate errors.
|
# Install ca-certificates to ensure no CA certificate errors.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user