Initial commit with sample app

This commit is contained in:
sid palas
2023-01-23 10:48:02 -05:00
commit 22ad01e315
29 changed files with 2231 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1
# Alpine is chosen for its small footprint
# compared to Ubuntu
FROM golang:1.19-alpine
WORKDIR /app
# Download necessary Go modules
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . .
CMD ["go", "run", "./main.go"]
# TODO use best practices: https://snyk.io/blog/containerizing-go-applications-with-docker/