From 8c3fce37f67f7e65592a41161bbff98116198584 Mon Sep 17 00:00:00 2001 From: KingLeak95 Date: Mon, 30 Oct 2023 13:40:10 -0400 Subject: [PATCH] Starting Intial Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..788a0e9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.21 + +WORKDIR /app +COPY go.mod go.sum ./ +RUN go mod download +RUN ls +COPY . . + +RUN go build -o /to-do-list + +EXPOSE 8080 +CMD ["/to-do-list"]