Skip to content

Commit

Permalink
Improve Dockerfile
Browse files Browse the repository at this point in the history
jay7x committed Jul 2, 2023
1 parent e2987c6 commit 2e03b86
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,6 @@ dockers:
- goos: linux
goarch: amd64
use: buildx
dockerfile: .dockerfile
build_flag_templates:
- --platform=linux/amd64
- &l1 --label=org.opencontainers.image.title={{ .ProjectName }}
@@ -43,7 +42,6 @@ dockers:
- goos: linux
goarch: arm64
use: buildx
dockerfile: .dockerfile
build_flag_templates:
- --platform=linux/arm64
- *l1
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This Dockerfile is used by goreleaser
# Run `go build` first if you'd like to build the image manually

FROM scratch

COPY etc-hosts-proxy /bin/etc-hosts-proxy

ENV \
ETC_HOSTS_PROXY_DEBUG="false" \
ETC_HOSTS_PROXY_LOG_LEVEL="info" \
ETC_HOSTS_PROXY_MODE="http" \
ETC_HOSTS_PROXY_LISTEN_ADDRESS="0.0.0.0:8080" \
ETC_HOSTS_PROXY_HOSTS_LIST=""

ENTRYPOINT ["/bin/etc-hosts-proxy"]
CMD ["run"]

EXPOSE 8080

0 comments on commit 2e03b86

Please sign in to comment.