diff options
author | Matthew Lemon <y@yulqen.org> | 2024-01-31 15:15:21 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-01-31 15:15:21 +0000 |
commit | 6701e384c43c553a00d40b26d42af418dd7a5b50 (patch) | |
tree | 9575c0acf45ce9e18f5fe412f56de8708abd5c24 | |
parent | 5bdf1a81806b690e11d6e7ab5c6191c10482b7b9 (diff) |
Adds Dockerfile
-rw-r--r-- | Dockerfile | 8 |
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 |