Add Dockerfile and make directives
This commit is contained in:
+11
@@ -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"]
|
||||
Reference in New Issue
Block a user