~ancarda/tls-redirector

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2

[PATCH v2] Add Dockerfile

Details
Message ID
<20200805025454.14794-1-antonio@goorzhel.com>
DKIM signature
missing
Download raw message
Patch: +9 -0
Resolves #6
---
 Dockerfile | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5122a97
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
FROM golang:1.14-alpine AS builder
WORKDIR /go/src/git.sr.ht/~ancarda/tls-redirector
COPY *.go ./
RUN go build .

FROM alpine:latest
COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
EXPOSE 80
CMD ["./tls-redirector"]
-- 
2.27.0
Details
Message ID
<9d156e36-9613-4ac9-96e8-435159b281da@www.fastmail.com>
In-Reply-To
<20200805025454.14794-1-antonio@goorzhel.com> (view parent)
DKIM signature
missing
Download raw message
Thanks for this, Antonio!

I will merge it in the coming days. I don't have a proper Internet
connection right now.

-Mark

On Wed, Aug 5, 2020, at 3:54 AM, Antonio Gurgel wrote:
> Resolves #6
> ---
>  Dockerfile | 9 +++++++++
>  1 file changed, 9 insertions(+)
>  create mode 100644 Dockerfile
> 
> diff --git a/Dockerfile b/Dockerfile
> new file mode 100644
> index 0000000..5122a97
> --- /dev/null
> +++ b/Dockerfile
> @@ -0,0 +1,9 @@
> +FROM golang:1.14-alpine AS builder
> +WORKDIR /go/src/git.sr.ht/~ancarda/tls-redirector
> +COPY *.go ./
> +RUN go build .
> +
> +FROM alpine:latest
> +COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
> +EXPOSE 80
> +CMD ["./tls-redirector"]
> -- 
> 2.27.0
>
Details
Message ID
<073b8c10-f24b-4246-a803-e69d9dabc2f9@www.fastmail.com>
In-Reply-To
<9d156e36-9613-4ac9-96e8-435159b281da@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
Merged: https://git.sr.ht/~ancarda/tls-redirector/commit/b3c9cfddc0f8

Thanks again :)



On Fri, Aug 7, 2020, at 8:02 PM, Mark Dain wrote:
> Thanks for this, Antonio!
> 
> I will merge it in the coming days. I don't have a proper Internet
> connection right now.
> 
> -Mark
> 
> On Wed, Aug 5, 2020, at 3:54 AM, Antonio Gurgel wrote:
> > Resolves #6
> > ---
> >  Dockerfile | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> >  create mode 100644 Dockerfile
> > 
> > diff --git a/Dockerfile b/Dockerfile
> > new file mode 100644
> > index 0000000..5122a97
> > --- /dev/null
> > +++ b/Dockerfile
> > @@ -0,0 +1,9 @@
> > +FROM golang:1.14-alpine AS builder
> > +WORKDIR /go/src/git.sr.ht/~ancarda/tls-redirector
> > +COPY *.go ./
> > +RUN go build .
> > +
> > +FROM alpine:latest
> > +COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
> > +EXPOSE 80
> > +CMD ["./tls-redirector"]
> > -- 
> > 2.27.0
> >
Reply to thread Export thread (mbox)