From 6701e384c43c553a00d40b26d42af418dd7a5b50 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 31 Jan 2024 15:15:21 +0000 Subject: Adds Dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile 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 -- cgit v1.2.3