Skip to content

Commit

Permalink
Merge pull request #15 from jay7x/docker
Browse files Browse the repository at this point in the history
Improve Dockerfile
  • Loading branch information
jay7x authored Jul 2, 2023
2 parents e2987c6 + 2e03b86 commit a88d835
Show file tree
Hide file tree
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
Expand Up @@ -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 }}
Expand All @@ -43,7 +42,6 @@ dockers:
- goos: linux
goarch: arm64
use: buildx
dockerfile: .dockerfile
build_flag_templates:
- --platform=linux/arm64
- *l1
Expand Down
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 a88d835

Please sign in to comment.