12 lines
173 B
Docker
12 lines
173 B
Docker
FROM golang:1.22.4
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /ozon-task cmd/server.go
|
|
|
|
CMD ["/ozon-task"]
|