diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-05 13:58:50 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-05 13:58:50 +0100 |
commit | f964ea8fd27768b626a610222f7c3e8c1919e303 (patch) | |
tree | fa2681daee88b7f618af766e4384a2e931ecdc9a /Dockerfile | |
parent | 415dd1a5a9899b3fe2d14eca4ba26bc8cc612e90 (diff) |
Created a Docker file for the project
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 |