~ancarda/tls-redirector

Add Dockerfile v2 APPLIED

Antonio Gurgel: 1
 Add Dockerfile

 1 files changed, 9 insertions(+), 0 deletions(-)
Merged: https://git.sr.ht/~ancarda/tls-redirector/commit/b3c9cfddc0f8

Thanks again :)



On Fri, Aug 7, 2020, at 8:02 PM, Mark Dain wrote:
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~ancarda/tls-redirector/patches/11855/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v2] Add Dockerfile Export this patch

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
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: