diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..419d3be --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:alpine + +WORKDIR /app + +COPY go.mod ./ +RUN go mod download && go mod verify +COPY . . +RUN go build -v -o /usr/local/bin/app ./cmd/api +CMD ["app"] +EXPOSE 4000 |