summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-01-31 15:15:21 +0000
committerMatthew Lemon <y@yulqen.org>2024-01-31 15:15:21 +0000
commit6701e384c43c553a00d40b26d42af418dd7a5b50 (patch)
tree9575c0acf45ce9e18f5fe412f56de8708abd5c24
parent5bdf1a81806b690e11d6e7ab5c6191c10482b7b9 (diff)
Adds Dockerfile
-rw-r--r--Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..50ed167
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,8 @@
+FROM golang:alpine
+WORKDIR /app
+COPY go.mod ./
+RUN go mod download && go mod verify
+COPY . .
+RUN go build -v -o /usr/local/bin/app .
+CMD ["app"]
+EXPOSE 4000