Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit 9124ae5

Browse files
authored
Merge pull request #13 from ASMfreaK/master
Fix local hosts resolution
2 parents b53e546 + 55f8105 commit 9124ae5

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ RUN \
5555
/root/.cache \
5656
/tmp/* \
5757
/root/go \
58-
/root/.npm
58+
/root/.npm && \
59+
echo "**** network fixes ****" && \
60+
printf "hosts: files dns" > /etc/nsswitch.conf
5961

6062
# copy local files
6163
COPY root/ /

Dockerfile.aarch64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ RUN \
5353
build-dependencies && \
5454
rm -rf \
5555
/root/.cache \
56-
/tmp/*
56+
/tmp/* && \
57+
echo "**** network fixes ****" && \
58+
printf "hosts: files dns" > /etc/nsswitch.conf
5759

5860
# copy local files
5961
COPY root/ /

Dockerfile.armhf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ RUN \
5353
build-dependencies && \
5454
rm -rf \
5555
/root/.cache \
56-
/tmp/*
56+
/tmp/* && \
57+
echo "**** network fixes ****" && \
58+
printf "hosts: files dns" > /etc/nsswitch.conf
5759

5860
# copy local files
5961
COPY root/ /

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
256256

257257
## Versions
258258

259+
* **22.11.20:** - Added fix for `nsswitch.conf` to resolve local hosts
259260
* **17.09.20:** - Initial Release.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ app_setup_block: |
8888
8989
# changelog
9090
changelogs:
91+
- { date: "22.11.20:", desc: "Added fix for `nsswitch.conf` to resolve local hosts" }
9192
- { date: "17.09.20:", desc: "Initial Release." }

0 commit comments

Comments
 (0)