From 5d40aaa9566093189aa735457c7f9b1566b66f41 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Wed, 15 Nov 2023 09:26:19 -0500 Subject: container env for development --- Containerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..4c34116 --- /dev/null +++ b/Containerfile @@ -0,0 +1,15 @@ +FROM golang:alpine + +WORKDIR /opt/build + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY . . + +RUN CGO_ENABLED=0 GOOS=linux go build -o /opt/newsstand src/main.go + +EXPOSE 8080 + +CMD ["/opt/newsstand"] -- cgit v1.2.3