diff options
| author | Alexander Kavon <hawk@alexkavon.com> | 2023-11-15 09:26:19 -0500 |
|---|---|---|
| committer | Alexander Kavon <hawk@alexkavon.com> | 2023-11-15 09:26:19 -0500 |
| commit | 5d40aaa9566093189aa735457c7f9b1566b66f41 (patch) | |
| tree | d3b797cdef65587441910949da38ede0ae47de67 /Containerfile | |
| parent | 110b266efa6f7ee544c3345857740dd1e56b2c0a (diff) | |
container env for development
Diffstat (limited to 'Containerfile')
| -rw-r--r-- | Containerfile | 15 |
1 files changed, 15 insertions, 0 deletions
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"] |
