diff --git a/.dockerfile b/.dockerfile deleted file mode 100644 index ebe9848..0000000 --- a/.dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM scratch - -COPY etc-hosts-proxy /bin/etc-hosts-proxy - -ENV ETC_HOSTS_PROXY_LISTEN_ADDRESS 0.0.0.0:8080 - -ENTRYPOINT ["/bin/etc-hosts-proxy"] -CMD ["run"] - -EXPOSE 8080 diff --git a/.goreleaser.yml b/.goreleaser.yml index 08d36a5..a450223 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2d6cecf --- /dev/null +++ b/Dockerfile @@ -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