~ancarda/tls-redirector

Antonio Gurgel: 1
 Add Dockerfile

 1 files changed, 9 insertions(+), 0 deletions(-)
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/11846/mbox | git am -3
Learn more about email & git

[PATCH] 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..48a6ddd
--- /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 CGO_ENABLED=0 GOOS=linux go build -a -o app .

FROM alpine:latest
COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/app .
EXPOSE 80
CMD ["./app"]
-- 
2.27.0
Thank you so much for doing this!

I do have some questions about this patch. Some might be the result
of ignorance as I don't know much about Docker.