aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-05 13:58:50 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-05 13:58:50 +0100
commitf964ea8fd27768b626a610222f7c3e8c1919e303 (patch)
treefa2681daee88b7f618af766e4384a2e931ecdc9a /Dockerfile
parent415dd1a5a9899b3fe2d14eca4ba26bc8cc612e90 (diff)
Created a Docker file for the project
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..419d3be
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+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/api
+CMD ["app"]
+EXPOSE 4000