yats.git

commit 52368506e6152253b608f553efaa4d1acf55bec6

Author: Paolo Lulli <paolo@lulli.net>

Add Dockerfile

 server/Dockerfile | 11 +++++++++++


diff --git a/server/Dockerfile b/server/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..e4a6dee934bb51d7a814ac64b6bd37c82f9365cc
--- /dev/null
+++ b/server/Dockerfile
@@ -0,0 +1,11 @@
+FROM docker.io/golang:1.23rc2-alpine3.20 as build
+
+WORKDIR /app
+COPY . ./
+RUN go mod download
+RUN go build -o yats-server .
+
+# stage2 - serve the app
+FROM build as serve
+EXPOSE 8080
+CMD [ "./yats-server" ]