From f964ea8fd27768b626a610222f7c3e8c1919e303 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 5 Apr 2024 13:58:50 +0100 Subject: Created a Docker file for the project --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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 -- cgit v1.2.3