list

server

This is the main dovel repository, it has the Go code to run dovel SMTP server.

curl -O https://dovel.email/server.tar.gz tar.gz

1a87fa1

Author: brian (git@myr.sh)

Date: Wed Dec 27 10:11:53 2023 -0300

Parent: 4363ef5

Removed Makefile and added Dockerfile

Diff

Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..fdc553f
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+FROM golang:latest as builder
+
+COPY *.go go.* /
+
+RUN go build .
+
+FROM scratch
+
+COPY --from=builder /server /
+
+CMD ["/server"]

Makefile

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 63b4825..0000000
--- a/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-.PHONY: deploy
-
-dovel: $(wildcard cmd/dovel/*.go *.go util/*/*.go)
-	GOARCH=arm GOARM=6 go build -o $@ cmd/dovel/*.go
-
-deploy: dovel
-	scp -O $^ zero:
-	ssh zero "mv $^ .local/bin/"
-