smithy

commit 06feb07cfb1c6c502e7e9925e55e368560a8c098

Author: Honza Pokorny <me@honza.ca>

Use Makefile in Dockerfile

 Dockerfile | 5 +----


diff --git a/Dockerfile b/Dockerfile
index 52dfbba36989745d12673c0e3984049b70806b19..1928c13088c1924b9b0fe598ae6ccc1ba32cb3b2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,14 +10,11 @@
 # Copy go mod and sum files
 COPY go.mod go.sum ./
 
-# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
-RUN go mod download
-
 # Copy the source from the current directory to the Working Directory inside the container
 COPY . .
 
 # Build the Go app
-RUN CGO_ENABLED=0 go build -o smithy .
+RUN make
 
 ######## Start a new stage from scratch #######
 FROM alpine:latest