service v.1

This commit is contained in:
andrusyakka
2024-07-04 17:35:04 +03:00
parent 28425f05a8
commit c9e3f13fe1
5 changed files with 96 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM golang:1.19
LABEL authors="andrusyakka@dopcore.com"
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 go build -o ./app
RUN chmod +x ./app
EXPOSE 8080
CMD ["/app/app"]