service v.1
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user