diff options
| author | Fuwn <[email protected]> | 2022-01-20 16:03:08 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-01-20 16:03:08 -0800 |
| commit | 8070becd846a5b59b0ee32015d02eb00a2652f4e (patch) | |
| tree | e4bb4d40792d75bcb7649ca56b36239753489ad0 /Dockerfile | |
| download | bowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.tar.xz bowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.zip | |
bowl: :star:
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9558966 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM golang:1.17.6-alpine3.14 AS build_base + +RUN apk add --no-cache git + +WORKDIR /tmp/bowl + +COPY go.mod . + +COPY go.sum . + +RUN go mod download + +COPY . . + +RUN go build -o ./out/bowl . + +FROM alpine:3.15 + +RUN apk add ca-certificates + +COPY --from=build_base /tmp/bowl/out/bowl /app/bowl + +WORKDIR /app + +EXPOSE 8080 + +CMD ["./bowl"] |