Add Dockerfile and make directives

This commit is contained in:
2021-06-21 12:54:18 -04:00
parent 31e4e1e094
commit cfdfbe1cca
2 changed files with 25 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM golang:1.16-alpine
WORKDIR /go/src/github.com/davidlick/supermarket-api/
COPY . .
WORKDIR ./cmd/api/
RUN go build -o supermarket-api -v ./...
EXPOSE 3000
CMD ["./supermarket-api"]