Initial version

Project structure, api, discovery service, docker.
This commit is contained in:
2023-12-06 08:29:05 +03:00
commit 7864272baa
19 changed files with 896 additions and 0 deletions

13
deploy/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM golang:1.21 as builder
WORKDIR /project
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /project/service ./cmd/server
FROM alpine:latest
COPY --from=builder /project/service /
ENTRYPOINT ["/service"]